T - the entity typepublic abstract class EntityProperties<T extends net.minecraft.entity.Entity> extends java.lang.Object implements IEntityData<T>
| 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(T entity,
net.minecraft.world.World world)
Initialize this data context.
|
void |
loadTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
Client reads tracking sensitive data from this hook
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadNBTData, saveNBTDatapublic final void init(T entity, net.minecraft.world.World world)
IEntityDatainit in interface IEntityData<T extends net.minecraft.entity.Entity>entity - the new entityworld - the new worldpublic 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()
getID in interface IEntityData<T extends net.minecraft.entity.Entity>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