Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/08/20 in all areas

  1. Such item exists in ActuallyAditions: https://github.com/Ellpeck/ActuallyAdditions/blob/1.12.2/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemCrafterOnAStick.java#L32
    1 point
  2. In case the full repo is usefull: https://github.com/Orothuin/Forge-Forum-Version
    1 point
  3. Its full of explanations for almost every method and class..also the workflow of the whole code is described below the code files in the page i linked...so you have created your item, but you need a container to store things in it, and a gui to interact with it. What the code does is exactly that..it creates an item, it creates a container for the item and an associated container screen (your gui), then it gives the item the possibility to access the container and store items within it. Of course the code that does that is a bit long and complicated, but you really need to read it carefully and try to understand it, then ask questions about specific things of the code. You don't expect someone on this forum to write the code for you right?
    1 point
  4. Finally. Give me a couple hours and I’ll have pushed my changes to ExampleMod and my tutorials that make all registration use DeferredRegisty.
    1 point
  5. Woah... The DeferredRegister system is really cool! That's even better than anything I was expecting, thanks for bringing it to my attention! I'm assuming it won't interfere with ObjectHolder, right? From the looks of it, I simply need to initialize ObjectHolder objects with DeferredRegister#register instead of null and ObjectHolder will still take over any replacements by other mods.
    1 point
  6. One way is to use a method that always returns null but suppresses IDEA's warnings, like this: method, usage The newer way is to use the DeferredRegister system that was introduced relatively recently. I've started updating to this, but it doesn't look like I've pushed any of my changes to GitHub.
    1 point
×
×
  • Create New...

Important Information

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