public class EntityList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map |
classToStringMapping
Provides a mapping between a string and an entity classes
|
static java.util.HashMap |
entityEggs
This is a HashMap of the Creative Entity Eggs/Spawners.
|
static java.util.Map |
IDtoClassMapping
provides a mapping between an entityID and an Entity Class
|
static java.util.Map |
stringToClassMapping
Provides a mapping between entity classes and a string
|
Constructor and Description |
---|
EntityList() |
Modifier and Type | Method and Description |
---|---|
static void |
addMapping(java.lang.Class par0Class,
java.lang.String par1Str,
int par2)
adds a mapping between Entity classes and both a string representation and an ID
|
static void |
addMapping(java.lang.Class par0Class,
java.lang.String par1Str,
int par2,
int par3,
int par4)
Adds a entity mapping with egg info.
|
static Entity |
createEntityByID(int par0,
World par1World)
Create a new instance of an entity in the world by using an entity ID.
|
static Entity |
createEntityByName(java.lang.String par0Str,
World par1World)
Create a new instance of an entity in the world by using the entity name.
|
static Entity |
createEntityFromNBT(NBTTagCompound par0NBTTagCompound,
World par1World)
create a new instance of an entity from NBT store
|
static java.lang.Class |
getClassFromID(int par0)
Return the class assigned to this entity ID.
|
static int |
getEntityID(Entity par0Entity)
gets the entityID of a specific entity
|
static java.lang.String |
getEntityString(Entity par0Entity)
Gets the string representation of a specific entity.
|
static java.lang.String |
getStringFromID(int par0)
Finds the class using IDtoClassMapping and classToStringMapping
|
public static java.util.Map stringToClassMapping
public static java.util.Map classToStringMapping
public static java.util.Map IDtoClassMapping
public static java.util.HashMap entityEggs
public static void addMapping(java.lang.Class par0Class, java.lang.String par1Str, int par2)
public static void addMapping(java.lang.Class par0Class, java.lang.String par1Str, int par2, int par3, int par4)
public static Entity createEntityByName(java.lang.String par0Str, World par1World)
public static Entity createEntityFromNBT(NBTTagCompound par0NBTTagCompound, World par1World)
public static Entity createEntityByID(int par0, World par1World)
public static int getEntityID(Entity par0Entity)
public static java.lang.Class getClassFromID(int par0)
public static java.lang.String getEntityString(Entity par0Entity)
public static java.lang.String getStringFromID(int par0)