public enum EntityDataHandler extends java.lang.Enum<EntityDataHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T extends net.minecraft.entity.Entity> |
getEntityData(T entity)
Get a list with all the registered data manager for the specified entity
|
<T extends net.minecraft.entity.Entity> |
getEntityData(T entity,
java.lang.String identifier) |
<T extends net.minecraft.entity.Entity> |
registerExtendedEntityData(T entity,
IEntityData<T> entityData)
Registers an Extended Entity Data Manager to the given entity
|
static EntityDataHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityDataHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityDataHandler INSTANCE
public static EntityDataHandler[] values()
for (EntityDataHandler c : EntityDataHandler.values()) System.out.println(c);
public static EntityDataHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <T extends net.minecraft.entity.Entity> void registerExtendedEntityData(T entity,
IEntityData<T> entityData)
T - the entity typeentity - the entity to add data toentityData - the data managerpublic <T extends net.minecraft.entity.Entity> IEntityData<T> getEntityData(T entity, java.lang.String identifier)
T - the entity typeentity - the entityidentifier - the string identifierpublic <T extends net.minecraft.entity.Entity> java.util.List<IEntityData<T>> getEntityData(T entity)
T - the entity typeentity - the entity instance