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.lang.Class<? extends Entity> |
getClassFromName(java.lang.String p_192839_0_) |
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 entityType) |
static java.lang.String |
getValidTypeNames() |
static void |
init() |
static boolean |
isMatchingName(Entity entityIn,
ResourceLocation entityName) |
static boolean |
isRegistered(ResourceLocation entityName) |
static Entity |
newEntity(java.lang.Class<? extends Entity> clazz,
World worldIn) |
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 entityType)
@Nullable public static java.lang.Class<? extends Entity> getClassFromID(int entityID)
@Nullable public static java.lang.Class<? extends Entity> getClassFromName(java.lang.String p_192839_0_)
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> clazz, World worldIn)
@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 java.lang.String getValidTypeNames()
public static void init()
protected static EntityList.EntityEggInfo addSpawnInfo(java.lang.String id, int primaryColor, int secondaryColor)