YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.common.IExtendedEntityProperties Interface Reference

Public Member Functions

void saveNBTData (NBTTagCompound compound)
 
void loadNBTData (NBTTagCompound compound)
 
void init (Entity entity, World world)
 

Detailed Description

Allows for custom entity data and logic to be hooked to existing entity classes.

Author
cpw, mithion

Member Function Documentation

void net.minecraftforge.common.IExtendedEntityProperties.init ( Entity  entity,
World  world 
)

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.

Parameters
entityThe entity that this extended properties is attached to
worldThe 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.

Parameters
compoundThe 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.

Parameters
compoundThe compound to save to.

The documentation for this interface was generated from the following file: