public class EntityRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
EntityRegistry.EntityRegistration |
Modifier and Type | Method and Description |
---|---|
static void |
addSpawn(java.lang.Class<? extends EntityLiving> entityClass,
int weightedProb,
int min,
int max,
EnumCreatureType typeOfCreature,
BiomeGenBase... biomes) |
static void |
addSpawn(java.lang.String entityName,
int weightedProb,
int min,
int max,
EnumCreatureType spawnList,
BiomeGenBase... biomes) |
static int |
findGlobalUniqueEntityId() |
static EntityRegistry |
instance() |
EntityRegistry.EntityRegistration |
lookupModSpawn(java.lang.Class<? extends Entity> clazz,
boolean keepLooking) |
EntityRegistry.EntityRegistration |
lookupModSpawn(ModContainer mc,
int modEntityId) |
static void |
registerGlobalEntityID(java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id) |
static void |
registerGlobalEntityID(java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id,
int backgroundEggColour,
int foregroundEggColour) |
static void |
registerModEntity(java.lang.Class<? extends Entity> entityClass,
java.lang.String entityName,
int id,
java.lang.Object mod,
int trackingRange,
int updateFrequency,
boolean sendsVelocityUpdates)
Register the mod entity type with FML
|
static void |
removeSpawn(java.lang.Class<? extends EntityLiving> entityClass,
EnumCreatureType typeOfCreature,
BiomeGenBase... biomes) |
static void |
removeSpawn(java.lang.String entityName,
EnumCreatureType spawnList,
BiomeGenBase... biomes) |
boolean |
tryTrackingEntity(EntityTracker entityTracker,
Entity entity) |
public static EntityRegistry instance()
public static void registerModEntity(java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id, java.lang.Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
entityClass
- The entity classentityName
- A unique name for the entityid
- A mod specific ID for the entitymod
- The modtrackingRange
- The range at which MC will send tracking updatesupdateFrequency
- The frequency of tracking updatessendsVelocityUpdates
- Whether to send velocity information packets as wellpublic static void registerGlobalEntityID(java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id)
public static void registerGlobalEntityID(java.lang.Class<? extends Entity> entityClass, java.lang.String entityName, int id, int backgroundEggColour, int foregroundEggColour)
public static void addSpawn(java.lang.Class<? extends EntityLiving> entityClass, int weightedProb, int min, int max, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
public static void addSpawn(java.lang.String entityName, int weightedProb, int min, int max, EnumCreatureType spawnList, BiomeGenBase... biomes)
public static void removeSpawn(java.lang.Class<? extends EntityLiving> entityClass, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
public static void removeSpawn(java.lang.String entityName, EnumCreatureType spawnList, BiomeGenBase... biomes)
public static int findGlobalUniqueEntityId()
public EntityRegistry.EntityRegistration lookupModSpawn(java.lang.Class<? extends Entity> clazz, boolean keepLooking)
public EntityRegistry.EntityRegistration lookupModSpawn(ModContainer mc, int modEntityId)
public boolean tryTrackingEntity(EntityTracker entityTracker, Entity entity)