public class EntityRegistry.EntityRegistration extends Object
Constructor and Description |
---|
EntityRegistry.EntityRegistration(ModContainer mc,
Class<? extends Entity> entityClass,
String entityName,
int id,
int trackingRange,
int updateFrequency,
boolean sendsVelocityUpdates) |
Modifier and Type | Method and Description |
---|---|
Entity |
doCustomSpawning(EntitySpawnPacket packet) |
ModContainer |
getContainer() |
Class<? extends Entity> |
getEntityClass() |
String |
getEntityName() |
int |
getModEntityId() |
int |
getTrackingRange() |
int |
getUpdateFrequency() |
boolean |
hasCustomSpawning() |
boolean |
sendsVelocityUpdates() |
void |
setCustomSpawning(com.google.common.base.Function<EntitySpawnPacket,Entity> callable,
boolean usesVanillaSpawning) |
boolean |
usesVanillaSpawning() |
public EntityRegistry.EntityRegistration(ModContainer mc, Class<? extends Entity> entityClass, String entityName, int id, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
public ModContainer getContainer()
public String getEntityName()
public int getModEntityId()
public int getTrackingRange()
public int getUpdateFrequency()
public boolean sendsVelocityUpdates()
public boolean usesVanillaSpawning()
public boolean hasCustomSpawning()
public Entity doCustomSpawning(EntitySpawnPacket packet) throws Exception
Exception
public void setCustomSpawning(com.google.common.base.Function<EntitySpawnPacket,Entity> callable, boolean usesVanillaSpawning)