public class EntityEntry extends IForgeRegistryEntry.Impl<EntityEntry>
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends Entity> |
cls |
private EntityList.EntityEggInfo |
egg |
(package private) java.util.function.Function<World,? extends Entity> |
factory |
private java.lang.String |
name |
delegate
Constructor and Description |
---|
EntityEntry(java.lang.Class<? extends Entity> cls,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
EntityList.EntityEggInfo |
getEgg() |
java.lang.Class<? extends Entity> |
getEntityClass() |
java.lang.String |
getName() |
protected void |
init() |
Entity |
newInstance(World world) |
void |
setEgg(EntityList.EntityEggInfo egg) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
private java.lang.Class<? extends Entity> cls
private java.lang.String name
private EntityList.EntityEggInfo egg
public EntityEntry(java.lang.Class<? extends Entity> cls, java.lang.String name)
protected void init()
public java.lang.Class<? extends Entity> getEntityClass()
public java.lang.String getName()
public EntityList.EntityEggInfo getEgg()
public void setEgg(EntityList.EntityEggInfo egg)