Beispiel #1
0
 /**
  * Register a new entity ID
  *
  * @param entityClass
  * @param entityName
  * @param id
  * @param background
  * @param foreground
  */
 public static void registerEntityID(
     Class<? extends Entity> entityClass,
     String entityName,
     int id,
     int background,
     int foreground) {
   FMLRegistry.registerEntityID(entityClass, entityName, id, background, foreground);
 }
Beispiel #2
0
 /**
  * Add a mob to the spawn list
  *
  * @param entityName
  * @param weightedProb
  * @param min
  * @param max
  * @param spawnList
  * @param biomes
  */
 public static void addSpawn(
     String entityName,
     int weightedProb,
     int min,
     int max,
     EnumCreatureType spawnList,
     BiomeGenBase... biomes) {
   FMLRegistry.addSpawn(entityName, weightedProb, min, max, spawnList, biomes);
 }
Beispiel #3
0
 /**
  * Add a mob to the spawn list
  *
  * @param entityClass
  * @param weightedProb
  * @param min
  * @param max
  * @param spawnList
  * @param biomes
  */
 public static void addSpawn(
     Class<? extends EntityLiving> entityClass,
     int weightedProb,
     int min,
     int max,
     EnumCreatureType spawnList,
     BiomeGenBase... biomes) {
   FMLRegistry.addSpawn(entityClass, weightedProb, min, max, spawnList, biomes);
 }
Beispiel #4
0
 /**
  * Add a mob to the spawn list
  *
  * @param entityName
  * @param weightedProb
  * @param min
  * @param max
  * @param spawnList
  */
 public static void addSpawn(
     String entityName, int weightedProb, int min, int max, EnumCreatureType spawnList) {
   FMLRegistry.addSpawn(
       entityName,
       weightedProb,
       min,
       max,
       spawnList,
       FMLServerHandler.instance().getDefaultOverworldBiomes());
 }
Beispiel #5
0
 /**
  * Add a mob to the spawn list
  *
  * @param entityClass
  * @param weightedProb
  * @param min
  * @param max
  * @param spawnList
  */
 public static void addSpawn(
     Class<? extends EntityLiving> entityClass,
     int weightedProb,
     int min,
     int max,
     EnumCreatureType spawnList) {
   FMLRegistry.addSpawn(
       entityClass,
       weightedProb,
       min,
       max,
       spawnList,
       FMLServerHandler.instance().getDefaultOverworldBiomes());
 }
Beispiel #6
0
 /**
  * Remove a spawn
  *
  * @param entityName
  * @param spawnList
  * @param biomes
  */
 public static void removeSpawn(
     String entityName, EnumCreatureType spawnList, BiomeGenBase... biomes) {
   FMLRegistry.removeSpawn(entityName, spawnList, biomes);
 }
Beispiel #7
0
 /**
  * Remove a spawn
  *
  * @param entityName
  * @param spawnList
  */
 public static void removeSpawn(String entityName, EnumCreatureType spawnList) {
   FMLRegistry.removeSpawn(
       entityName, spawnList, FMLServerHandler.instance().getDefaultOverworldBiomes());
 }
Beispiel #8
0
 /**
  * Remove a spawn
  *
  * @param entityClass
  * @param spawnList
  * @param biomes
  */
 public static void removeSpawn(
     Class<? extends EntityLiving> entityClass,
     EnumCreatureType spawnList,
     BiomeGenBase... biomes) {
   FMLRegistry.removeSpawn(entityClass, spawnList, biomes);
 }
Beispiel #9
0
 /**
  * Remove a spawn
  *
  * @param entityClass
  * @param spawnList
  */
 public static void removeSpawn(
     Class<? extends EntityLiving> entityClass, EnumCreatureType spawnList) {
   FMLRegistry.removeSpawn(
       entityClass, spawnList, FMLServerHandler.instance().getDefaultOverworldBiomes());
 }
Beispiel #10
0
 public static void registerTileEntity(
     Class<? extends TileEntity> tileEntityClass, String id, Object renderer) {
   FMLRegistry.instance().registerTileEntity(tileEntityClass, id);
 }
Beispiel #11
0
 /**
  * Register a new tile entity class
  *
  * @param tileEntityClass
  * @param id
  */
 public static void registerTileEntity(Class<? extends TileEntity> tileEntityClass, String id) {
   FMLRegistry.registerTileEntity(tileEntityClass, id);
 }
Beispiel #12
0
 /**
  * Add a new product to be smelted
  *
  * @param input
  * @param output
  */
 public static void addSmelting(int input, ItemStack output) {
   FMLRegistry.addSmelting(input, output);
 }
Beispiel #13
0
 /**
  * Register a new entity ID
  *
  * @param entityClass
  * @param entityName
  * @param id
  */
 public static void registerEntityID(
     Class<? extends Entity> entityClass, String entityName, int id) {
   FMLRegistry.registerEntityID(entityClass, entityName, id);
 }
Beispiel #14
0
 /**
  * Register a new block
  *
  * @param block
  * @param itemclass
  */
 public static void registerBlock(Block block, Class<? extends ItemBlock> itemclass) {
   FMLRegistry.registerBlock(block, itemclass);
 }
Beispiel #15
0
 /**
  * Register a new block
  *
  * @param block
  */
 public static void registerBlock(Block block) {
   FMLRegistry.registerBlock(block);
 }
Beispiel #16
0
 /**
  * This method adds the supplied biome to the set of candidate biomes for the default world
  * generator type.
  *
  * @param biome
  */
 public static void addBiome(BiomeGenBase biome) {
   FMLRegistry.addBiome(biome);
 }
 private void removeNormalMobsAndCreatures() {
   BiomeGenBase[] allbiomes =
       new BiomeGenBase[] {
         BiomeGenBase.beach,
         BiomeGenBase.desert,
         BiomeGenBase.desertHills,
         BiomeGenBase.extremeHills,
         BiomeGenBase.extremeHillsEdge,
         BiomeGenBase.forest,
         BiomeGenBase.forestHills,
         BiomeGenBase.frozenOcean,
         BiomeGenBase.frozenRiver,
         BiomeGenBase.iceMountains,
         BiomeGenBase.icePlains,
         BiomeGenBase.jungle,
         BiomeGenBase.jungleHills,
         BiomeGenBase.mushroomIsland,
         BiomeGenBase.mushroomIslandShore,
         BiomeGenBase.ocean,
         BiomeGenBase.plains,
         BiomeGenBase.river,
         BiomeGenBase.sky,
         BiomeGenBase.swampland,
         BiomeGenBase.taiga,
         BiomeGenBase.taigaHills
       };
   if (!spawnSheep)
     FMLRegistry.removeSpawn(EntitySheep.class, EnumCreatureType.creature, allbiomes);
   if (!spawnCow) FMLRegistry.removeSpawn(EntityCow.class, EnumCreatureType.creature, allbiomes);
   if (!spawnPig) FMLRegistry.removeSpawn(EntityPig.class, EnumCreatureType.creature, allbiomes);
   if (!spawnChicken)
     FMLRegistry.removeSpawn(EntityChicken.class, EnumCreatureType.creature, allbiomes);
   if (!spawnOcelot)
     FMLRegistry.removeSpawn(EntityOcelot.class, EnumCreatureType.monster, allbiomes);
   if (!spawnWolf) FMLRegistry.removeSpawn(EntityWolf.class, EnumCreatureType.creature, allbiomes);
   if (!spawnCaveSpider)
     FMLRegistry.removeSpawn(EntityCaveSpider.class, EnumCreatureType.monster, allbiomes);
   if (!spawnCreeper)
     FMLRegistry.removeSpawn(EntityCreeper.class, EnumCreatureType.monster, allbiomes);
   if (!spawnEnderman)
     FMLRegistry.removeSpawn(EntityEnderman.class, EnumCreatureType.monster, allbiomes);
   if (!spawnGhast)
     FMLRegistry.removeSpawn(EntityGhast.class, EnumCreatureType.monster, allbiomes);
   if (!spawnGiantZombie)
     FMLRegistry.removeSpawn(EntityGiantZombie.class, EnumCreatureType.monster, allbiomes);
   if (!spawnGolem)
     FMLRegistry.removeSpawn(EntityGolem.class, EnumCreatureType.monster, allbiomes);
   if (!spawnMooshroom)
     FMLRegistry.removeSpawn(EntityMooshroom.class, EnumCreatureType.creature, allbiomes);
   if (!spawnPigZombie)
     FMLRegistry.removeSpawn(EntityPigZombie.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSilverFish)
     FMLRegistry.removeSpawn(EntitySilverfish.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSkeleton)
     FMLRegistry.removeSpawn(EntitySkeleton.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSlime)
     FMLRegistry.removeSpawn(EntitySlime.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSpider)
     FMLRegistry.removeSpawn(EntitySpider.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSquid)
     FMLRegistry.removeSpawn(EntitySquid.class, EnumCreatureType.waterCreature, allbiomes);
   if (!spawnZombie)
     FMLRegistry.removeSpawn(EntityZombie.class, EnumCreatureType.monster, allbiomes);
 }
Beispiel #18
0
 /**
  * Add a shapeless recipe
  *
  * @param output
  * @param params
  */
 public static void addShapelessRecipe(ItemStack output, Object... params) {
   FMLRegistry.addShapelessRecipe(output, params);
 }