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 |
private static java.util.Set<ResourceLocation> |
EXTRA_NAMES |
static ResourceLocation |
LIGHTNING_BOLT |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static ResourceLocation |
PLAYER |
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) |
private static void |
register(int id,
java.lang.String name,
java.lang.Class<? extends Entity> clazz,
java.lang.String oldName) |
public static final ResourceLocation LIGHTNING_BOLT
private static final ResourceLocation PLAYER
private static final org.apache.logging.log4j.Logger LOGGER
public static final java.util.Map<ResourceLocation,EntityList.EntityEggInfo> ENTITY_EGGS
private static final java.util.Set<ResourceLocation> EXTRA_NAMES
@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)
@Nullable 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()
private static void register(int id, java.lang.String name, java.lang.Class<? extends Entity> clazz, java.lang.String oldName)
protected static EntityList.EntityEggInfo addSpawnInfo(java.lang.String id, int primaryColor, int secondaryColor)