public class EntityRegistry.EntityRegistration
extends java.lang.Object
Constructor and Description |
---|
EntityRegistration(ModContainer mc,
java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id,
int trackingRange,
int updateFrequency,
boolean sendsVelocityUpdates) |
Modifier and Type | Method and Description |
---|---|
Entity |
doCustomSpawning(FMLMessage.EntitySpawnMessage spawnMsg) |
ModContainer |
getContainer() |
java.lang.Class<? extends Entity> |
getEntityClass() |
java.lang.String |
getEntityName() |
int |
getModEntityId() |
int |
getTrackingRange() |
int |
getUpdateFrequency() |
boolean |
hasCustomSpawning() |
boolean |
sendsVelocityUpdates() |
void |
setCustomSpawning(com.google.common.base.Function<FMLMessage.EntitySpawnMessage,Entity> callable,
boolean usesVanillaSpawning) |
boolean |
usesVanillaSpawning() |
public EntityRegistration(ModContainer mc, java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
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(com.google.common.base.Function<FMLMessage.EntitySpawnMessage,Entity> callable, boolean usesVanillaSpawning)