Package net.minecraft.src
Class EntityList
java.lang.Object
net.minecraft.src.EntityList
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic HashMapThis is a HashMap of the Creative Entity Eggs/Spawners. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMapping(Class par0Class, String par1Str, int par2) adds a mapping between Entity classes and both a string representation and an IDstatic voidaddMapping(Class par0Class, String par1Str, int par2, int par3, int par4) Adds a entity mapping with egg info.static voidaddMapping(Class par0Class, String par1Str, int par2, int par3, int par4, int variant) static EntitycreateEntityByID(int par0, World par1World) Create a new instance of an entity in the world by using an entity ID.static EntitycreateEntityByName(String par0Str, World par1World) Create a new instance of an entity in the world by using the entity name.static EntitycreateEntityFromNBT(NBTTagCompound par0NBTTagCompound, World par1World) create a new instance of an entity from NBT storestatic ClassgetClassFromID(int par0) Return the class assigned to this entity ID.static intgetEntityID(Entity par0Entity) gets the entityID of a specific entitystatic intgetEntityIDFromClass(Class entityClass) Gets the entityID of a specific entity from its classstatic StringgetEntityString(Entity par0Entity) Gets the string representation of a specific entity.static StringgetStringFromID(int par0) Finds the class using IDtoClassMapping and classToStringMappingstatic booleanremoveMapping(String sName, boolean bRemoveEgg)
-
Field Details
-
entityEggs
This is a HashMap of the Creative Entity Eggs/Spawners.
-
-
Constructor Details
-
EntityList
public EntityList()
-
-
Method Details
-
addMapping
adds a mapping between Entity classes and both a string representation and an ID -
addMapping
Adds a entity mapping with egg info. -
addMapping
-
createEntityByName
Create a new instance of an entity in the world by using the entity name. -
createEntityFromNBT
create a new instance of an entity from NBT store -
createEntityByID
Create a new instance of an entity in the world by using an entity ID. -
getEntityID
gets the entityID of a specific entity -
getEntityIDFromClass
Gets the entityID of a specific entity from its class -
getClassFromID
Return the class assigned to this entity ID. -
getEntityString
Gets the string representation of a specific entity. -
getStringFromID
Finds the class using IDtoClassMapping and classToStringMapping -
removeMapping
-