Started by
EnsurdFrndship
on
Topic category: Help with MCreator software
Hello,
I saw several Java code 'examples' for Forge on 'written books' that uses the import net.minecraft.nbt.* interface, but when I copy the code into my project, some of these modules are missing. Some of them are...
net.minecraft.nbt.NBTTagList
and
net.minecraft.nbt.NBTTagString
There ARE interfaces in net.minecraft.nbt.*. How do I access them? Thank you.
If they are missing, and you have imported everything. Then it is logical to assume they are not there 🤷♂️. Did you compare the Minecraft forge version to yours?
I know those interfaces aren't there, and am wondering how to get them into wherever directory or location I need them to be in, so I can import them, and why they don't just show up in my 'list' as I am 'importing' in my Java code. According to somebody elses' post, I don't think you can change versions IF you are given the wrong version when you first install MCreator, but how do I compare versions?
I think you are confusing a couple things. You don't move around files. You import files that are there. They don't show up on the list because they are either not in the 'game' any more, or are located at another location. So, you are going to need to research to find A or B.
i.e. EntityPlayer was changed to PlayerEntity
I think I misphrased that. What I meant was, are you using like 1.15.2 or 1.12.2?
This does not seem like a recent code.
You can't blindly copy snippets and expect them to work in any Minecraft version you desire.
I see. Is there a way to get the right version of Minecraft with the snippets that come with it (for these 2 snippets I mentioned)?