Everything posted by Draco18s
-
[1.16.1] How create a new slab block with Eclipse?
"create" is a method name, it is not some special magic Java keyword. Go into the source code of the DeferredRegister class, find its create method, and look at it.
-
[1.15.2] Make a method return a value from a capability
Watch this: https://www.youtube.com/watch?v=FyCYva9DhsI
-
[1.15.2] Cannot get overridden block methods to run
Yes. Creative mode bypasses a lot of things. In this case, hijacking left-click and immediately setting the block to air.
-
How can I get instance of a World?
Uh... Its not a World, but it still has all the info you should need.
-
[1.16.1] How create a new slab block with Eclipse?
# has special Javadoc meaning, it is not meant to be a literal character you use. Look at the create method and figure out what to do.
-
About The WorldGenTrees Class Was Outdated
How the fuck does that help anyone?
-
About The WorldGenTrees Class Was Outdated
If those extensions don't do what you need, either write your own, subclassing an existing one, or the abstract one, depending on your needs.
-
Prevent FULL AUTO item use
Well, you registered a new keybinding. Did you create a static reference to hold it? Did you do anything to make sure that reference had a value?
-
Why is the new version of Forge so different from the old version of Forge?
Looks like the last time you modded was in 1.7 or there abouts. The registration system has changed three times since then, partially to keep up with changes in Mojang code (items and blocks are now entirely stored based on their fully namespaced registry names, for example) and partially to make things more robust (and prevent people from doing stupid fucking shit like creating new items at run time, registering conditionally based on configs, or creating registry entry objects too early). You're going to want this first off: https://mcforge.readthedocs.io/en/1.15.x/concepts/registries/ Second, go look at the vanilla Item class (and the interface it implements, IForgeItem) in order to find the new signature for the method you're trying to override. Remember: there are two hands now, so that method now takes a Hand parameter. Be sure to check which hand is being used!
-
[1.15.2] Make a method return a value from a capability
Or refactor your code to access the capability directly instead of through a method so you can use ifPresent properly. (That is, your method serves no purpose)
-
How to remove X-Ray Texture from custom model black?
Don't return empty. Actually spend two seconds figuring out what volume your block actually occupies and return that. Tip, if it doesn't visually fill the entire face, don't return a volume that fills the entire face. Because (surprise) that volume is also used to draw the bounding box that you can CLICK ON.
-
Does Forge have an api manual?
Thousands. Whatever they need to be for. It is easier to ask us how to do something.
-
[1.15.2] What event fires after all items are registered?
"Listen for" is not the same as "implement or override." Yes, and in such a case--if you were using tags to identify items--you'd want to be notified that the tags have changed and to re-identify items. That may not be important for you.
-
[1.15.2] What event fires after all items are registered?
TagsUpdatedEvent is a good one, that lets you query by tag, too. Otherwise FMLLoadCompletedEvent.
-
[1.15.2] Custom recipe type creation
Implement IRecipe (or subclass an existing implementation) and register a serializer with the Forge registry system.
-
[1.16.1] Methods in world class (re)moved?
Could be. There's still a lot of methods in 1.16 that haven't been properly named yet
-
[1.16.1] Methods in world class (re)moved?
getSaveHandler is part of ServerWorld now, rather than World. getSeed is still getSeed and is declared in the IWorld interface, so all Worlds should have it.
-
[solved][1.13.2] how to use forge ore dictionary in recipes?
No shit. Start your own thread. Then why are you here and not asking for help where CraftTweaker is the subject? This is the Forge forums, we help people with Forge. Secondly, with JSON recipes, CraftTweaker is completely unneccessary.
-
[1.16.1] [Solved] I need help with containerItems
That's not what that means. It means "use the version of the same method that takes an item stack parameter." As in, sensitive to data (of type ItemStack) that can change. You'll find this method detailed in the interface IForgeItem, which Item extends.
-
BlockState half
Your block does not have a HALF property.
-
[1.16.1] How create a new slab block with Eclipse?
Supply the correct types inside the <>.
-
[1.16.1] [Solved] I need help with containerItems
Have you followed directions?
-
Random Number Generation in Event Handler
Then you're fine.
-
Random Number Generation in Event Handler
Once ever, or?
- Prevent FULL AUTO item use
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.