public class EntityList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityList.EntityEggInfo |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.Class<? extends Entity>,java.lang.String> |
CLASS_TO_NAME |
static java.util.Map<java.lang.String,EntityList.EntityEggInfo> |
ENTITY_EGGS |
static java.util.Map<java.lang.Integer,java.lang.Class<? extends Entity>> |
ID_TO_CLASS |
static java.util.Map<java.lang.String,java.lang.Class<? extends Entity>> |
NAME_TO_CLASS |
Constructor and Description |
---|
EntityList() |
Modifier and Type | Method and Description |
---|---|
static void |
addMapping(java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id) |
static void |
addMapping(java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int entityID,
int baseColor,
int spotColor) |
static Entity |
createEntityByID(int entityID,
World worldIn) |
static Entity |
createEntityByIDFromName(java.lang.String name,
World worldIn) |
static Entity |
createEntityByName(java.lang.String entityName,
World worldIn) |
static Entity |
createEntityFromNBT(NBTTagCompound nbt,
World worldIn) |
static java.lang.Class<? extends Entity> |
getClassFromID(int entityID) |
static int |
getEntityID(Entity entityIn) |
static java.util.List<java.lang.String> |
getEntityNameList() |
static java.lang.String |
getEntityString(Entity entityIn) |
static java.lang.String |
getEntityStringFromClass(java.lang.Class<? extends Entity> entityClass) |
static int |
getIDFromString(java.lang.String entityName) |
static void |
init() |
static boolean |
isStringEntityName(Entity entityIn,
java.lang.String entityName) |
static boolean |
isStringValidEntityName(java.lang.String entityName) |
public static final java.util.Map<java.lang.String,java.lang.Class<? extends Entity>> NAME_TO_CLASS
public static final java.util.Map<java.lang.Class<? extends Entity>,java.lang.String> CLASS_TO_NAME
public static final java.util.Map<java.lang.Integer,java.lang.Class<? extends Entity>> ID_TO_CLASS
public static final java.util.Map<java.lang.String,EntityList.EntityEggInfo> ENTITY_EGGS
public static void addMapping(java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id)
public static void addMapping(java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int entityID, int baseColor, int spotColor)
@Nullable public static Entity createEntityByName(java.lang.String entityName, World worldIn)
@Nullable public static Entity createEntityFromNBT(NBTTagCompound nbt, World worldIn)
@Nullable public static Entity createEntityByIDFromName(java.lang.String name, World worldIn)
public static int getEntityID(Entity entityIn)
@Nullable public static java.lang.Class<? extends Entity> getClassFromID(int entityID)
public static java.lang.String getEntityString(Entity entityIn)
public static java.lang.String getEntityStringFromClass(java.lang.Class<? extends Entity> entityClass)
public static int getIDFromString(java.lang.String entityName)
public static void init()
public static java.util.List<java.lang.String> getEntityNameList()
public static boolean isStringEntityName(Entity entityIn, java.lang.String entityName)
public static boolean isStringValidEntityName(java.lang.String entityName)