public class EntityRegistry.EntityRegistration
extends java.lang.Object
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) |
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() |
ResourceLocation |
getRegistryName() |
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, ResourceLocation registryName, java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
public ResourceLocation getRegistryName()
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)