Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/19/17 in all areas

  1. If you already understand Java (and it's painfully obvious that you don't), you would know exactly what you need to replace null with. This forum is for help with Minecraft and Forge, what you are asking for help with is Java, which is neither of the above. So before you keep whining about how nobody will help you, realize that you're in the wrong place. As is stated on this forum all the time, this is not a forum for teaching Java because you should already have a reasonable understanding of Java before you start trying to make mods. You'll find that everyone on here is perfectly helpful, you're just not listening to us.
    2 points
  2. There is a built-in utility for storing BlockPos as NBT data. To create an NBTTag from BlockPos: net.minecraft.nbt.NBTUtil#createPosTag To read BlockPos data from NBTTag: net.minecraft.nbt.NBTUtil#getPosFromTag
    1 point
  3. You can serialize a BlockPos instance via BlockPos#toLong(). Save that returned long value to an NBT tag via setLong. To deserialize it, simply use BlockPos.fromLong.
    1 point
  4. The point here is that the problems you are struggling with demonstrate a lack of understanding of basic java. The help you need has nothing to do with the complexities of minecraft and forge code, it only has to do with the basic syntax and function of java code. Failing to initialise a final variable is invalid java Writing a for loop outside of a method is invalid java Trying to access a null variable is invalid java None of these problems are to do with minecraft. You need to be able to understand basic java issues like this before there is any point in you getting help from a forge forum.
    1 point
×
×
  • Create New...

Important Information

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