public interface IEntityData<T extends net.minecraft.entity.Entity>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getID() |
void |
init(T entity,
net.minecraft.world.World world)
Initialize this data context.
|
void |
loadNBTData(net.minecraft.nbt.NBTTagCompound compound)
Reads data saved on an entity
|
void |
saveNBTData(net.minecraft.nbt.NBTTagCompound compound)
Saves data to an entity
|
void init(T entity, net.minecraft.world.World world)
entity - the new entityworld - the new worldvoid saveNBTData(net.minecraft.nbt.NBTTagCompound compound)
compound - the NBTTagCompound to write the data tovoid loadNBTData(net.minecraft.nbt.NBTTagCompound compound)
compound - the NBTTagCompound to read the data fromjava.lang.String getID()