Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. You need to run the gradle build command.
  2. Yes it is exactly what you want. Just check every slot first. If you need to know if the inventory is empty iterate over the slots and check each slot if you find one that is empty then it is not full. If you make it through all of them and none of them are empty the inventory is full.
  3. At this point it's simple algorithm. Look through your for loop and see what it does.
  4. This is never called because you never told forge to look there. You need to register your event. Since it is static you can just add the EventBusSubscriber annotation to the class it's in.
  5. When this line is called in your Main class constructor the Player doesn't exist. I'm not even sure if Minecraft.getMinecraft() returns a non null value.
  6. I think this is the wrong method use the one that has the BlockState parameter.
  7. It's called getRenderLayer now, and it is the only thing you have to override.
  8. The are different. But they do both use the Registry events.
  9. Interface as a gui? One block or different types of blocks? Not sure what this means, How about you give one example of what you are trying to do? Like what will the player do to use your multiblock structure. What will the structure do?
  10. Try BiomeManager.addBiome or BiomeManager.addSpawnBiome if you want the world spawn to potentially be that biome.
  11. Please don't necro old threads. Make your own.
  12. Look at the methods inside it there are two I can think of insertItem and extractItem. It isn't. The contents are synced from the IItemHandler when they change if you call detectAndSendChanges(I believe that is what it is called).
  13. Why is this a thing? What if two players open the TE at the same time.... Why not just use the IItemHandler you have directly?...
  14. This is a modding support forum for mod makers. If you need help with creating loot tables the format is detailed on the minecraft wiki.
  15. Thanks. Starting out very basic gotta work on those concepts, and how to explain them.
  16. There is also another method apparently, I'm not sure why Minecraft decided it needed 4 different Shape methods for the Block. You can actually just override getShape and it will be called in all the other shape methods (getCollisionShape, getRenderShape, getRaytraceShape)
  17. No...why doesn't the internet tell you why the error is caused. I'm kinda disappointed in it. The problem is your method signature is wrong. Look in the Block class and find the method called getCollisionShape
  18. That's a Java error not a forge error. Please look it up. If eclipse ever yells at you with a red underline that is a Java error. Don't ask about those here.
  19. If you do a little looking you'll discover the VoxelShapes class that has the create methods for VoxelShape objects.
×
×
  • Create New...

Important Information

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