YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
cpw.mods.fml.common.registry.EntityRegistry Class Reference

Classes

class  EntityRegistration
 

Public Member Functions

EntityRegistration lookupModSpawn (Class<?extends Entity > clazz, boolean keepLooking)
 
EntityRegistration lookupModSpawn (ModContainer mc, int modEntityId)
 
boolean tryTrackingEntity (EntityTracker entityTracker, Entity entity)
 

Static Public Member Functions

static EntityRegistry instance ()
 
static void registerModEntity (Class<?extends Entity > entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
 
static void registerGlobalEntityID (Class<?extends Entity > entityClass, String entityName, int id)
 
static void registerGlobalEntityID (Class<?extends Entity > entityClass, String entityName, int id, int backgroundEggColour, int foregroundEggColour)
 
static void addSpawn (Class<?extends EntityLiving > entityClass, int weightedProb, int min, int max, EnumCreatureType typeOfCreature, BiomeGenBase...biomes)
 
static void addSpawn (String entityName, int weightedProb, int min, int max, EnumCreatureType spawnList, BiomeGenBase...biomes)
 
static void removeSpawn (Class<?extends EntityLiving > entityClass, EnumCreatureType typeOfCreature, BiomeGenBase...biomes)
 
static void removeSpawn (String entityName, EnumCreatureType spawnList, BiomeGenBase...biomes)
 
static int findGlobalUniqueEntityId ()
 
static EntityRegistration registerModLoaderEntity (Object mod, Class<?extends Entity > entityClass, int entityTypeId, int updateRange, int updateInterval, boolean sendVelocityInfo)
 

Member Function Documentation

static void cpw.mods.fml.common.registry.EntityRegistry.addSpawn ( Class<?extends EntityLiving entityClass,
int  weightedProb,
int  min,
int  max,
EnumCreatureType  typeOfCreature,
BiomeGenBase...  biomes 
)
static
static void cpw.mods.fml.common.registry.EntityRegistry.addSpawn ( String  entityName,
int  weightedProb,
int  min,
int  max,
EnumCreatureType  spawnList,
BiomeGenBase...  biomes 
)
static
static int cpw.mods.fml.common.registry.EntityRegistry.findGlobalUniqueEntityId ( )
static
static EntityRegistry cpw.mods.fml.common.registry.EntityRegistry.instance ( )
static
EntityRegistration cpw.mods.fml.common.registry.EntityRegistry.lookupModSpawn ( Class<?extends Entity clazz,
boolean  keepLooking 
)
EntityRegistration cpw.mods.fml.common.registry.EntityRegistry.lookupModSpawn ( ModContainer  mc,
int  modEntityId 
)
static void cpw.mods.fml.common.registry.EntityRegistry.registerGlobalEntityID ( Class<?extends Entity entityClass,
String  entityName,
int  id 
)
static
static void cpw.mods.fml.common.registry.EntityRegistry.registerGlobalEntityID ( Class<?extends Entity entityClass,
String  entityName,
int  id,
int  backgroundEggColour,
int  foregroundEggColour 
)
static
static void cpw.mods.fml.common.registry.EntityRegistry.registerModEntity ( Class<?extends Entity entityClass,
String  entityName,
int  id,
Object  mod,
int  trackingRange,
int  updateFrequency,
boolean  sendsVelocityUpdates 
)
static

Register the mod entity type with FML

Parameters
entityClassThe entity class
entityNameA unique name for the entity
idA mod specific ID for the entity
modThe mod
trackingRangeThe range at which MC will send tracking updates
updateFrequencyThe frequency of tracking updates
sendsVelocityUpdatesWhether to send velocity information packets as well
static EntityRegistration cpw.mods.fml.common.registry.EntityRegistry.registerModLoaderEntity ( Object  mod,
Class<?extends Entity entityClass,
int  entityTypeId,
int  updateRange,
int  updateInterval,
boolean  sendVelocityInfo 
)
static

DO NOT USE THIS METHOD

Parameters
entityClass
entityTypeId
updateRange
updateInterval
sendVelocityInfo
static void cpw.mods.fml.common.registry.EntityRegistry.removeSpawn ( Class<?extends EntityLiving entityClass,
EnumCreatureType  typeOfCreature,
BiomeGenBase...  biomes 
)
static
static void cpw.mods.fml.common.registry.EntityRegistry.removeSpawn ( String  entityName,
EnumCreatureType  spawnList,
BiomeGenBase...  biomes 
)
static
boolean cpw.mods.fml.common.registry.EntityRegistry.tryTrackingEntity ( EntityTracker  entityTracker,
Entity  entity 
)

The documentation for this class was generated from the following file: