I'm pretty sure this would crash,since you are referencing to a non instanciated object...
Obviously. I was merely declaring the object so that the OP knew what type it was.
The proper way would be:
[code]
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
NBTTagCompound nbt = player.getEntityData();
Also,@OP:
I think you misunderstood the use of NBT Data.This simply returns a list of informations stored in nbt.You have to use nbt.setInteger/setByte/etc... to save them.
That won't work for SMP.
So, then what would work for SMP? Or do I need to just look at how NBT Data actually works? How do I make sure that the data is specific for each player? Do I need to declare it within a specific class or what?