Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. "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.
  2. Watch this: https://www.youtube.com/watch?v=FyCYva9DhsI
  3. Yes. Creative mode bypasses a lot of things. In this case, hijacking left-click and immediately setting the block to air.
  4. Uh... Its not a World, but it still has all the info you should need.
  5. # 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.
  6. How the fuck does that help anyone?
  7. 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.
  8. 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?
  9. 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!
  10. 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)
  11. 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.
  12. Thousands. Whatever they need to be for. It is easier to ask us how to do something.
  13. "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.
  14. TagsUpdatedEvent is a good one, that lets you query by tag, too. Otherwise FMLLoadCompletedEvent.
  15. Implement IRecipe (or subclass an existing implementation) and register a serializer with the Forge registry system.
  16. Could be. There's still a lot of methods in 1.16 that haven't been properly named yet
  17. 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.
  18. 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.
  19. 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.
  20. Your block does not have a HALF property.
  21. Supply the correct types inside the <>.
  22. Have you followed directions?
  23. Then you're fine.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.