T - the entity typepublic abstract class EntityProperties<T extends net.minecraft.entity.Entity>
extends java.lang.Object
implements net.minecraftforge.common.IExtendedEntityProperties
| Constructor and Description |
|---|
EntityProperties() |
| Modifier and Type | Method and Description |
|---|---|
PropertiesTracker<T> |
createTracker(T entity)
Creates a new tracker for this property
|
T |
getEntity() |
abstract java.lang.Class<T> |
getEntityClass() |
abstract java.lang.String |
getID() |
java.util.Set<PropertiesTracker<?>> |
getTrackers() |
int |
getTrackingTime() |
int |
getTrackingUpdateTime() |
net.minecraft.world.World |
getWorld() |
abstract void |
init()
Initializes the properties
|
void |
init(net.minecraft.entity.Entity entity,
net.minecraft.world.World world) |
void |
loadTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
Client reads tracking sensitive data from this method
|
void |
onSync()
Called when the data is syncing
|
void |
saveTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
Write any tracking sensitive data to this NBT.
|
void |
sync()
Forces all active trackers to sync the next tick
|
public final void init(net.minecraft.entity.Entity entity,
net.minecraft.world.World world)
init in interface net.minecraftforge.common.IExtendedEntityPropertiespublic java.util.Set<PropertiesTracker<?>> getTrackers()
public void sync()
public final net.minecraft.world.World getWorld()
public final T getEntity()
public abstract void init()
public abstract java.lang.String getID()
public abstract java.lang.Class<T> getEntityClass()
public int getTrackingTime()
public int getTrackingUpdateTime()
public void saveTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
compound - the compound to save topublic void loadTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
compound - the compound to load frompublic void onSync()
public PropertiesTracker<T> createTracker(T entity)
entity - the entity instance