Modifier and Type | Method and Description |
---|---|
static void |
EntityRegistry.addSpawn(Class<? extends EntityLiving> entityClass,
int weightedProb,
int min,
int max,
EnumCreatureType typeOfCreature,
BiomeGenBase... biomes) |
static void |
EntityRegistry.addSpawn(String entityName,
int weightedProb,
int min,
int max,
EnumCreatureType spawnList,
BiomeGenBase... biomes) |
static void |
EntityRegistry.removeSpawn(Class<? extends EntityLiving> entityClass,
EnumCreatureType typeOfCreature,
BiomeGenBase... biomes) |
static void |
EntityRegistry.removeSpawn(String entityName,
EnumCreatureType spawnList,
BiomeGenBase... biomes) |
Modifier and Type | Method and Description |
---|---|
boolean |
Block.canCreatureSpawn(EnumCreatureType type,
World world,
int x,
int y,
int z)
Determines if a specified mob type can spawn on this block, returning false will
prevent any mob from spawning on the block.
|
Modifier and Type | Method and Description |
---|---|
List |
ChunkProviderClient.getPossibleCreatures(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
Returns a list of creatures of the specified type that can spawn at the given location.
|
Modifier and Type | Method and Description |
---|---|
static EnumCreatureType |
EnumCreatureType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumCreatureType[] |
EnumCreatureType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Entity.isCreatureType(EnumCreatureType type,
boolean forSpawnCount)
Returns true if the entity is of the @link{EnumCreatureType} provided
|
Modifier and Type | Method and Description |
---|---|
static void |
ModLoader.addSpawn(Class<? extends EntityLiving> entityClass,
int weightedProb,
int min,
int max,
EnumCreatureType spawnList)
Add a mob to the spawn list
|
static void |
ModLoader.addSpawn(Class<? extends EntityLiving> entityClass,
int weightedProb,
int min,
int max,
EnumCreatureType spawnList,
BiomeGenBase... biomes)
Add a mob to the spawn list
|
static void |
ModLoader.addSpawn(String entityName,
int weightedProb,
int min,
int max,
EnumCreatureType spawnList)
Add a mob to the spawn list
|
static void |
ModLoader.addSpawn(String entityName,
int weightedProb,
int min,
int max,
EnumCreatureType spawnList,
BiomeGenBase... biomes)
Add a mob to the spawn list
|
static void |
ModLoader.removeSpawn(Class<? extends EntityLiving> entityClass,
EnumCreatureType spawnList)
Remove a spawn
|
static void |
ModLoader.removeSpawn(Class<? extends EntityLiving> entityClass,
EnumCreatureType spawnList,
BiomeGenBase... biomes)
Remove a spawn
|
static void |
ModLoader.removeSpawn(String entityName,
EnumCreatureType spawnList)
Remove a spawn
|
static void |
ModLoader.removeSpawn(String entityName,
EnumCreatureType spawnList,
BiomeGenBase... biomes)
Remove a spawn
|
Modifier and Type | Method and Description |
---|---|
static boolean |
SpawnerAnimals.canCreatureTypeSpawnAtLocation(EnumCreatureType par0EnumCreatureType,
World par1World,
int par2,
int par3,
int par4)
Returns whether or not the specified creature type can spawn at the specified location.
|
int |
World.countEntities(EnumCreatureType type,
boolean forSpawnCount)
Returns a count of entities that classify themselves as the specified creature type.
|
SpawnListEntry |
WorldServer.spawnRandomCreature(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
only spawns creatures allowed by the chunkProvider
|
Modifier and Type | Method and Description |
---|---|
List |
BiomeGenBase.getSpawnableList(EnumCreatureType par1EnumCreatureType)
Returns the correspondent list of the EnumCreatureType informed.
|
Modifier and Type | Method and Description |
---|---|
List |
IChunkProvider.getPossibleCreatures(EnumCreatureType enumcreaturetype,
int i,
int j,
int k)
Returns a list of creatures of the specified type that can spawn at the given location.
|
Modifier and Type | Method and Description |
---|---|
List |
ChunkProviderHell.getPossibleCreatures(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
Returns a list of creatures of the specified type that can spawn at the given location.
|
List |
ChunkProviderEnd.getPossibleCreatures(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
Returns a list of creatures of the specified type that can spawn at the given location.
|
List |
ChunkProviderServer.getPossibleCreatures(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
Returns a list of creatures of the specified type that can spawn at the given location.
|
List |
ChunkProviderGenerate.getPossibleCreatures(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
Returns a list of creatures of the specified type that can spawn at the given location.
|
List |
ChunkProviderFlat.getPossibleCreatures(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4)
Returns a list of creatures of the specified type that can spawn at the given location.
|
Modifier and Type | Method and Description |
---|---|
static EnumCreatureType |
EnumHelper.addCreatureType(String name,
Class typeClass,
int maxNumber,
Material material,
boolean peaceful) |
Modifier and Type | Method and Description |
---|---|
static List |
ForgeEventFactory.getPotentialSpawns(WorldServer world,
EnumCreatureType type,
int x,
int y,
int z,
List oldList) |
Modifier and Type | Field and Description |
---|---|
EnumCreatureType |
WorldEvent.PotentialSpawns.type |
Constructor and Description |
---|
WorldEvent.PotentialSpawns(World world,
EnumCreatureType type,
int x,
int y,
int z,
List oldList) |