YATS/Forge Documentation
|
Public Member Functions | |
void | saveNBTData (NBTTagCompound compound) |
void | loadNBTData (NBTTagCompound compound) |
void | init (Entity entity, World world) |
Allows for custom entity data and logic to be hooked to existing entity classes.
Used to initialize the extended properties with the entity that this is attached to, as well as the world object. Called automatically if you register with the EntityConstructing event.
entity | The entity that this extended properties is attached to |
world | The world in which the entity exists |
void net.minecraftforge.common.IExtendedEntityProperties.loadNBTData | ( | NBTTagCompound | compound) |
Called when the entity that this class is attached to is loaded. In order to hook into this, you will need to subscribe to the EntityConstructing event. Otherwise, you will need to initialize manually.
compound | The compound to load from. |
void net.minecraftforge.common.IExtendedEntityProperties.saveNBTData | ( | NBTTagCompound | compound) |
Called when the entity that this class is attached to is saved. Any custom entity data that needs saving should be saved here.
compound | The compound to save to. |