public class EntityRegistry.EntityRegistration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ModContainer |
container |
private java.util.function.Function<FMLMessage.EntitySpawnMessage,Entity> |
customSpawnCallback |
private java.lang.Class<? extends Entity> |
entityClass
Deprecated.
|
private java.lang.String |
entityName |
private java.util.function.Function<World,? extends Entity> |
factory |
private int |
modId |
private ResourceLocation |
regName |
private boolean |
sendsVelocityUpdates |
private int |
trackingRange |
private int |
updateFrequency |
private boolean |
usesVanillaSpawning |
Constructor and Description |
---|
EntityRegistration(ModContainer mc,
ResourceLocation registryName,
java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id,
int trackingRange,
int updateFrequency,
boolean sendsVelocityUpdates)
Deprecated.
|
EntityRegistration(ModContainer mc,
ResourceLocation registryName,
java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id,
int trackingRange,
int updateFrequency,
boolean sendsVelocityUpdates,
java.util.function.Function<World,? extends Entity> factory) |
Modifier and Type | Method and Description |
---|---|
Entity |
doCustomSpawning(FMLMessage.EntitySpawnMessage spawnMsg) |
ModContainer |
getContainer() |
java.lang.Class<? extends Entity> |
getEntityClass()
Deprecated.
|
java.lang.String |
getEntityName() |
int |
getModEntityId() |
ResourceLocation |
getRegistryName() |
int |
getTrackingRange() |
int |
getUpdateFrequency() |
boolean |
hasCustomSpawning() |
Entity |
newInstance(World world) |
boolean |
sendsVelocityUpdates() |
void |
setCustomSpawning(java.util.function.Function<FMLMessage.EntitySpawnMessage,Entity> callable,
boolean usesVanillaSpawning) |
boolean |
usesVanillaSpawning() |
@Deprecated private java.lang.Class<? extends Entity> entityClass
private ModContainer container
private ResourceLocation regName
private java.lang.String entityName
private int modId
private int trackingRange
private int updateFrequency
private boolean sendsVelocityUpdates
private java.util.function.Function<FMLMessage.EntitySpawnMessage,Entity> customSpawnCallback
private boolean usesVanillaSpawning
@Deprecated public EntityRegistration(ModContainer mc, ResourceLocation registryName, java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
public EntityRegistration(ModContainer mc, ResourceLocation registryName, java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates, java.util.function.Function<World,? extends Entity> factory)
public ResourceLocation getRegistryName()
@Deprecated public java.lang.Class<? extends Entity> getEntityClass()
public ModContainer getContainer()
public java.lang.String getEntityName()
public int getModEntityId()
public int getTrackingRange()
public int getUpdateFrequency()
public boolean sendsVelocityUpdates()
public boolean usesVanillaSpawning()
public boolean hasCustomSpawning()
public Entity doCustomSpawning(FMLMessage.EntitySpawnMessage spawnMsg) throws java.lang.Exception
java.lang.Exception
public void setCustomSpawning(java.util.function.Function<FMLMessage.EntitySpawnMessage,Entity> callable, boolean usesVanillaSpawning)