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<ResourceLocation,EntityList.EntityEggInfo> |
ENTITY_EGGS |
static ResourceLocation |
LIGHTNING_BOLT |
Constructor and Description |
---|
EntityList() |
Modifier and Type | Method and Description |
---|---|
protected static EntityList.EntityEggInfo |
addSpawnInfo(java.lang.String id,
int primaryColor,
int secondaryColor) |
static Entity |
createEntityByID(int entityID,
World worldIn) |
static Entity |
createEntityByIDFromName(ResourceLocation name,
World worldIn) |
static Entity |
createEntityFromNBT(NBTTagCompound nbt,
World worldIn) |
static java.lang.Class<? extends Entity> |
getClass(ResourceLocation key) |
static java.lang.Class<? extends Entity> |
getClassFromID(int entityID) |
static java.util.Set<ResourceLocation> |
getEntityNameList() |
static java.lang.String |
getEntityString(Entity entityIn) |
static int |
getID(java.lang.Class<? extends Entity> cls) |
static ResourceLocation |
getKey(java.lang.Class<? extends Entity> entityIn) |
static ResourceLocation |
getKey(Entity entityIn) |
static java.lang.String |
getTranslationName(ResourceLocation p_191302_0_) |
static void |
init() |
static boolean |
isMatchingName(Entity entityIn,
ResourceLocation entityName) |
static boolean |
isRegistered(ResourceLocation entityName) |
static Entity |
newEntity(java.lang.Class<? extends Entity> p_191304_0_,
World p_191304_1_) |
public static final ResourceLocation LIGHTNING_BOLT
public static final java.util.Map<ResourceLocation,EntityList.EntityEggInfo> ENTITY_EGGS
@Nullable public static ResourceLocation getKey(Entity entityIn)
@Nullable public static ResourceLocation getKey(java.lang.Class<? extends Entity> entityIn)
@Nullable public static java.lang.String getEntityString(Entity entityIn)
@Nullable public static java.lang.String getTranslationName(@Nullable ResourceLocation p_191302_0_)
@Nullable public static java.lang.Class<? extends Entity> getClassFromID(int entityID)
public static int getID(java.lang.Class<? extends Entity> cls)
public static java.lang.Class<? extends Entity> getClass(ResourceLocation key)
@Nullable public static Entity newEntity(@Nullable java.lang.Class<? extends Entity> p_191304_0_, World p_191304_1_)
@Nullable public static Entity createEntityByIDFromName(ResourceLocation name, World worldIn)
@Nullable public static Entity createEntityFromNBT(NBTTagCompound nbt, World worldIn)
public static java.util.Set<ResourceLocation> getEntityNameList()
public static boolean isMatchingName(Entity entityIn, ResourceLocation entityName)
public static boolean isRegistered(ResourceLocation entityName)
public static void init()
protected static EntityList.EntityEggInfo addSpawnInfo(java.lang.String id, int primaryColor, int secondaryColor)