2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.configuration;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.block.BlockHalfSlab;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
|
|
import biomesoplenty.api.Blocks;
|
2013-06-07 21:36:52 +00:00
|
|
|
import biomesoplenty.blocks.BlockAltar;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockAsh;
|
|
|
|
import biomesoplenty.blocks.BlockBOPAmethyst;
|
|
|
|
import biomesoplenty.blocks.BlockBOPAppleLeaves;
|
|
|
|
import biomesoplenty.blocks.BlockBOPColorizedLeaves;
|
|
|
|
import biomesoplenty.blocks.BlockBOPColorizedSapling;
|
2013-05-23 03:30:41 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPCoral;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPFlower;
|
|
|
|
import biomesoplenty.blocks.BlockBOPFoliage;
|
|
|
|
import biomesoplenty.blocks.BlockBOPGeneric;
|
|
|
|
import biomesoplenty.blocks.BlockBOPGeneric.BlockType;
|
2013-06-07 21:36:52 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPGlass;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPGrass;
|
|
|
|
import biomesoplenty.blocks.BlockBOPLeaves;
|
|
|
|
import biomesoplenty.blocks.BlockBOPLeaves.LeafCategory;
|
|
|
|
import biomesoplenty.blocks.BlockBOPLog;
|
|
|
|
import biomesoplenty.blocks.BlockBOPLog.LogCategory;
|
2013-05-13 13:43:16 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPMushroom;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPPetals;
|
|
|
|
import biomesoplenty.blocks.BlockBOPPlank;
|
|
|
|
import biomesoplenty.blocks.BlockBOPPlant;
|
|
|
|
import biomesoplenty.blocks.BlockBOPRedRock;
|
|
|
|
import biomesoplenty.blocks.BlockBOPSapling;
|
2013-05-12 12:38:39 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPSkystone;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockBOPSlab;
|
|
|
|
import biomesoplenty.blocks.BlockBOPSlab.SlabCategory;
|
|
|
|
import biomesoplenty.blocks.BlockBOPStairs;
|
|
|
|
import biomesoplenty.blocks.BlockBOPStairs.Category;
|
|
|
|
import biomesoplenty.blocks.BlockBamboo;
|
2013-05-22 20:08:28 +00:00
|
|
|
import biomesoplenty.blocks.BlockBones;
|
2013-05-10 20:28:30 +00:00
|
|
|
import biomesoplenty.blocks.BlockCloud;
|
2013-07-01 07:33:41 +00:00
|
|
|
import biomesoplenty.blocks.BlockGrave;
|
2013-05-20 14:41:19 +00:00
|
|
|
import biomesoplenty.blocks.BlockIvy;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockMoss;
|
|
|
|
import biomesoplenty.blocks.BlockMud;
|
|
|
|
import biomesoplenty.blocks.BlockOriginGrass;
|
|
|
|
import biomesoplenty.blocks.BlockPromisedPortal;
|
2013-06-25 08:53:40 +00:00
|
|
|
import biomesoplenty.blocks.BlockPuddle;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.blocks.BlockTreeMoss;
|
|
|
|
import biomesoplenty.blocks.BlockWillow;
|
2013-06-07 21:36:52 +00:00
|
|
|
import biomesoplenty.items.ItemBOPAltar;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPAmethyst;
|
|
|
|
import biomesoplenty.items.ItemBOPAppleLeaves;
|
|
|
|
import biomesoplenty.items.ItemBOPBamboo;
|
2013-05-22 20:29:39 +00:00
|
|
|
import biomesoplenty.items.ItemBOPBones;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPColorizedLeaves;
|
|
|
|
import biomesoplenty.items.ItemBOPColorizedSapling;
|
2013-05-23 03:30:41 +00:00
|
|
|
import biomesoplenty.items.ItemBOPCoral;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPFlower;
|
|
|
|
import biomesoplenty.items.ItemBOPFoliage;
|
2013-06-07 21:36:52 +00:00
|
|
|
import biomesoplenty.items.ItemBOPGlass;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPGrass;
|
2013-07-01 09:27:31 +00:00
|
|
|
import biomesoplenty.items.ItemBOPGrave;
|
2013-05-20 14:41:19 +00:00
|
|
|
import biomesoplenty.items.ItemBOPIvy;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPLeaves;
|
|
|
|
import biomesoplenty.items.ItemBOPLog;
|
|
|
|
import biomesoplenty.items.ItemBOPMoss;
|
|
|
|
import biomesoplenty.items.ItemBOPMud;
|
2013-05-13 14:08:01 +00:00
|
|
|
import biomesoplenty.items.ItemBOPMushroom;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPPetals;
|
|
|
|
import biomesoplenty.items.ItemBOPPlank;
|
|
|
|
import biomesoplenty.items.ItemBOPPlant;
|
|
|
|
import biomesoplenty.items.ItemBOPRedRock;
|
|
|
|
import biomesoplenty.items.ItemBOPSapling;
|
2013-05-12 12:38:39 +00:00
|
|
|
import biomesoplenty.items.ItemBOPSkystone;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.items.ItemBOPSlab;
|
|
|
|
import biomesoplenty.items.ItemBOPWillow;
|
2013-06-07 21:36:52 +00:00
|
|
|
import biomesoplenty.tileentity.TileEntityAltar;
|
2013-07-01 07:33:41 +00:00
|
|
|
import biomesoplenty.tileentity.TileEntityGrave;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
import com.google.common.base.Optional;
|
|
|
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
|
|
|
|
2013-07-01 00:36:50 +00:00
|
|
|
public class BOPBlocks
|
|
|
|
{
|
2013-05-03 13:00:44 +00:00
|
|
|
public static void init()
|
|
|
|
{
|
|
|
|
initializeBlocks();
|
|
|
|
registerBlocks();
|
2013-06-07 21:36:52 +00:00
|
|
|
registerTileEntities();
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
//Shears VS Blocks
|
2013-06-18 08:59:00 +00:00
|
|
|
Blocks.shearBlockIds.put(Block.leaves.blockID, 15.0F);
|
2013-05-03 13:00:44 +00:00
|
|
|
Blocks.shearBlockIds.put(Blocks.leaves1.get().blockID, 15.0F);
|
|
|
|
Blocks.shearBlockIds.put(Blocks.leaves2.get().blockID, 15.0F);
|
|
|
|
Blocks.shearBlockIds.put(Blocks.leavesColorized.get().blockID, 15.0F);
|
|
|
|
Blocks.shearBlockIds.put(Blocks.leavesFruit.get().blockID, 15.0F);
|
|
|
|
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.holyGrass.get(), 1, "shovel", 0);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.mud.get(), "shovel", 0);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.ash.get(), "shovel", 0);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.originGrass.get(), "shovel", 0);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.hardSand.get(), "shovel", 0);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.holyGrass.get(), 0, "pickaxe", 0);
|
|
|
|
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.driedDirt.get(), "pickaxe", 0);
|
2013-06-08 09:14:17 +00:00
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.altar.get(), "pickaxe", 0);
|
2013-06-03 01:22:36 +00:00
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 0, "pickaxe", 3);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 2, "pickaxe", 2);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 4, "pickaxe", 2);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 6, "pickaxe", 2);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 8, "pickaxe", 2);
|
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 10, "pickaxe", 2);
|
2013-06-03 02:54:15 +00:00
|
|
|
MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 12, "pickaxe", 2);
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
addGrassPlants();
|
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void initializeBlocks()
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
// Block declaration
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.mud = Optional.of((new BlockMud(BOPConfiguration.mudID)).setHardness(0.6F).setStepSound(Block.soundSandFootstep).setUnlocalizedName("bop.mud"));
|
|
|
|
Blocks.driedDirt = Optional.of(new BlockBOPGeneric(BOPConfiguration.driedDirtID, Material.rock, BlockType.DRIED_DIRT).setUnlocalizedName("bop.generic"));
|
|
|
|
Blocks.redRock = Optional.of((new BlockBOPRedRock(BOPConfiguration.redRockID)).setUnlocalizedName("bop.redRocks"));
|
|
|
|
Blocks.ash = Optional.of((new BlockAsh(BOPConfiguration.ashID)).setHardness(0.4F).setStepSound(Block.soundSandFootstep).setUnlocalizedName("bop.ash"));
|
|
|
|
Blocks.plants = Optional.of((new BlockBOPPlant(BOPConfiguration.plantsID)).setUnlocalizedName("bop.plants"));
|
|
|
|
Blocks.flowers = Optional.of((new BlockBOPFlower(BOPConfiguration.flowersID)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.flowers"));
|
|
|
|
Blocks.mushrooms = Optional.of((new BlockBOPMushroom(BOPConfiguration.mushroomsID)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.mushrooms"));
|
|
|
|
Blocks.coral = Optional.of((new BlockBOPCoral(BOPConfiguration.coralID)).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.coral"));
|
|
|
|
Blocks.willow = Optional.of((new BlockWillow(BOPConfiguration.willowID)).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.willow"));
|
|
|
|
Blocks.ivy = Optional.of((new BlockIvy(BOPConfiguration.ivyID)).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.ivy"));
|
|
|
|
Blocks.leaves1 = Optional.of((new BlockBOPLeaves(BOPConfiguration.leaves1ID, LeafCategory.CAT1)).setUnlocalizedName("bop.leaves1"));
|
|
|
|
Blocks.leaves2 = Optional.of((new BlockBOPLeaves(BOPConfiguration.leaves2ID, LeafCategory.CAT2)).setUnlocalizedName("bop.leaves2"));
|
|
|
|
Blocks.foliage = Optional.of((new BlockBOPFoliage(BOPConfiguration.foliageID)).setUnlocalizedName("bop.foliage"));
|
2013-05-31 10:34:02 +00:00
|
|
|
Blocks.ashStone = Optional.of(new BlockBOPGeneric(BOPConfiguration.ashStoneID, Material.rock, BlockType.ASH_STONE));
|
|
|
|
Blocks.hardIce = Optional.of(new BlockBOPGeneric(BOPConfiguration.hardIceID, Material.rock, BlockType.HARD_ICE));
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.leavesFruit = Optional.of((new BlockBOPAppleLeaves(BOPConfiguration.leavesFruitID)).setUnlocalizedName("bop.leavesFruit"));
|
|
|
|
Blocks.bamboo = Optional.of(new BlockBamboo(BOPConfiguration.bambooID).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.bamboo"));
|
2013-05-31 10:34:02 +00:00
|
|
|
Blocks.mudBrick = Optional.of(new BlockBOPGeneric(BOPConfiguration.mudBrickBlockID, Material.rock, BlockType.MUD_BRICK));
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.mudBricksStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.mudBrickStairsID, Blocks.redRock.get(), Category.MUD_BRICKS)).setUnlocalizedName("bop.mudBricksStairs"));
|
|
|
|
Blocks.stoneDoubleSlab = Optional.of((BlockHalfSlab)(new BlockBOPSlab(BOPConfiguration.stoneDoubleSlabID, true, Material.rock, SlabCategory.STONE)).setUnlocalizedName("bop.stoneDoubleSlab"));
|
|
|
|
Blocks.stoneSingleSlab = Optional.of((BlockHalfSlab)(new BlockBOPSlab(BOPConfiguration.stoneSingleSlabID, false, Material.rock, SlabCategory.STONE)).setUnlocalizedName("bop.stoneSingleSlab"));
|
|
|
|
Blocks.originGrass = Optional.of((new BlockOriginGrass(BOPConfiguration.originGrassID)).setHardness(0.6F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.originGrass"));
|
|
|
|
Blocks.treeMoss = Optional.of((new BlockTreeMoss(BOPConfiguration.treeMossID)).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.treeMoss"));
|
|
|
|
Blocks.logs1 = Optional.of((new BlockBOPLog(BOPConfiguration.logs1ID,LogCategory.CAT1)).setUnlocalizedName("bop.wood1"));
|
|
|
|
Blocks.logs2 = Optional.of((new BlockBOPLog(BOPConfiguration.logs2ID,LogCategory.CAT2)).setUnlocalizedName("bop.wood2"));
|
|
|
|
Blocks.logs3 = Optional.of((new BlockBOPLog(BOPConfiguration.logs3ID,LogCategory.CAT3)).setUnlocalizedName("bop.wood3"));
|
|
|
|
Blocks.logs4 = Optional.of((new BlockBOPLog(BOPConfiguration.logs4ID,LogCategory.CAT4)).setUnlocalizedName("bop.wood4"));
|
|
|
|
Blocks.petals = Optional.of((new BlockBOPPetals(BOPConfiguration.petalsID)).setUnlocalizedName("bop.petals"));
|
|
|
|
Blocks.saplings = Optional.of((new BlockBOPSapling(BOPConfiguration.saplingsID)).setUnlocalizedName("bop.saplings"));
|
|
|
|
Blocks.colorizedSaplings = Optional.of((new BlockBOPColorizedSapling(BOPConfiguration.colourizedSaplingsID)).setUnlocalizedName("bop.colorizedSaplings"));
|
|
|
|
Blocks.redCobbleStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.redCobbleStairsID, Blocks.redRock.get(), Category.RED_COBBLE)).setUnlocalizedName("bop.redCobbleStairs"));
|
|
|
|
Blocks.redBricksStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.redBrickStairsID, Blocks.redRock.get(), Category.RED_BRICKS)).setUnlocalizedName("bop.redBricksStairs"));
|
2013-05-31 10:34:02 +00:00
|
|
|
Blocks.hardSand = Optional.of(new BlockBOPGeneric(BOPConfiguration.hardSandID, Material.sand, BlockType.HARD_SAND));
|
|
|
|
Blocks.hardDirt = Optional.of(new BlockBOPGeneric(BOPConfiguration.hardDirtID, Material.rock, BlockType.HARD_DIRT));
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.holyGrass = Optional.of(new BlockBOPGrass(BOPConfiguration.holyGrassID).setUnlocalizedName("bop.holyGrass"));
|
2013-05-09 13:38:48 +00:00
|
|
|
Blocks.holyDirt = Optional.of(new BlockBOPGeneric(BOPConfiguration.holyDirtID, Material.sand, BlockType.HOLY_DIRT));
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.holyStone = Optional.of((new BlockBOPSkystone(BOPConfiguration.holyStoneID)).setUnlocalizedName("bop.holyStone"));
|
|
|
|
Blocks.holyCobbleStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.holyCobbleStairsID, Blocks.holyStone.get(), Category.HOLY_COBBLE)).setUnlocalizedName("bop.holyCobbleStairs"));
|
|
|
|
Blocks.holyBricksStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.holyBrickStairsID, Blocks.holyStone.get(), Category.HOLY_BRICKS)).setUnlocalizedName("bop.holyBricksStairs"));
|
2013-05-10 18:50:44 +00:00
|
|
|
Blocks.crystal = Optional.of(new BlockBOPGeneric(BOPConfiguration.crystalID, Material.glass, BlockType.CRYSTAL));
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.promisedPortal = Optional.of(new BlockPromisedPortal(BOPConfiguration.promisedLandPortalID).setUnlocalizedName("bop.promisedPortal").setBlockUnbreakable().setResistance(6000000.0F).setLightValue(1.0F));
|
2013-07-01 00:36:50 +00:00
|
|
|
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.amethystOre = Optional.of(new BlockBOPAmethyst(BOPConfiguration.amethystOreID, Material.rock).setUnlocalizedName("bop.amethystOre"));
|
2013-07-01 00:36:50 +00:00
|
|
|
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.moss = Optional.of((new BlockMoss(BOPConfiguration.mossID)).setHardness(0.2F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.moss"));
|
2013-07-01 00:36:50 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
Blocks.cragRock = Optional.of(new BlockBOPGeneric(BOPConfiguration.cragRockID, Material.rock, BlockType.CRAG_ROCK));
|
2013-07-01 00:36:50 +00:00
|
|
|
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.cloud = Optional.of((new BlockCloud(BOPConfiguration.cloudID)).setHardness(0.1F).setLightOpacity(3).setStepSound(Block.soundClothFootstep).setUnlocalizedName("bop.cloud"));
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.bones = Optional.of((new BlockBones(BOPConfiguration.bonesID)).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.bones"));
|
2013-06-07 21:36:52 +00:00
|
|
|
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.glass = Optional.of((new BlockBOPGlass(BOPConfiguration.glassID)).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("bop.glass"));
|
2013-06-07 21:36:52 +00:00
|
|
|
|
2013-06-09 00:39:12 +00:00
|
|
|
Blocks.altar = Optional.of((new BlockAltar(BOPConfiguration.altarID)).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.altar"));
|
2013-06-25 08:53:40 +00:00
|
|
|
|
|
|
|
Blocks.puddle = Optional.of((new BlockPuddle(BOPConfiguration.puddleID)).setStepSound(Block.soundGravelFootstep).setUnlocalizedName("bop.puddle"));
|
2013-07-01 07:33:41 +00:00
|
|
|
Blocks.grave = Optional.of((new BlockGrave(BOPConfiguration.graveID)).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.grave"));
|
2013-06-09 00:39:12 +00:00
|
|
|
|
|
|
|
Blocks.planks = Optional.of((new BlockBOPPlank(BOPConfiguration.planksID)).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setUnlocalizedName("bop.planks"));
|
|
|
|
|
|
|
|
Blocks.woodenDoubleSlab1 = Optional.of((BlockHalfSlab)(new BlockBOPSlab(BOPConfiguration.woodenDoubleSlab1ID, true, Material.wood, SlabCategory.WOOD1)).setUnlocalizedName("bop.woodenDoubleSlab1"));
|
|
|
|
Blocks.woodenSingleSlab1 = Optional.of((BlockHalfSlab)(new BlockBOPSlab(BOPConfiguration.woodenSingleSlab1ID, false, Material.wood, SlabCategory.WOOD1)).setUnlocalizedName("bop.woodenSingleSlab1"));
|
|
|
|
Blocks.woodenDoubleSlab2 = Optional.of((BlockHalfSlab)(new BlockBOPSlab(BOPConfiguration.woodenDoubleSlab2ID, true, Material.wood, SlabCategory.WOOD2)).setUnlocalizedName("bop.woodenDoubleSlab2"));
|
|
|
|
Blocks.woodenSingleSlab2 = Optional.of((BlockHalfSlab)(new BlockBOPSlab(BOPConfiguration.woodenSingleSlab2ID, false, Material.wood, SlabCategory.WOOD2)).setUnlocalizedName("bop.woodenSingleSlab2"));
|
|
|
|
|
|
|
|
Blocks.acaciaStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.acaciaStairsID, Blocks.planks.get(), Category.ACACIA)).setUnlocalizedName("bop.acaciaStairs"));
|
|
|
|
Blocks.cherryStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.cherryStairsID, Blocks.planks.get(), Category.CHERRY)).setUnlocalizedName("bop.cherryStairs"));
|
|
|
|
Blocks.darkStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.darkStairsID, Blocks.planks.get(), Category.DARK)).setUnlocalizedName("bop.darkStairs"));
|
|
|
|
Blocks.firStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.firStairsID, Blocks.planks.get(), Category.FIR)).setUnlocalizedName("bop.firStairs"));
|
|
|
|
Blocks.holyStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.holyStairsID, Blocks.planks.get(), Category.HOLY)).setUnlocalizedName("bop.holyStairs"));
|
|
|
|
Blocks.magicStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.magicStairsID, Blocks.planks.get(), Category.MAGIC)).setUnlocalizedName("bop.magicStairs"));
|
|
|
|
Blocks.mangroveStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.mangroveStairsID, Blocks.planks.get(), Category.MANGROVE)).setUnlocalizedName("bop.mangroveStairs"));
|
|
|
|
Blocks.palmStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.palmStairsID, Blocks.planks.get(), Category.PALM)).setUnlocalizedName("bop.palmStairs"));
|
|
|
|
Blocks.redwoodStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.redwoodStairsID, Blocks.planks.get(), Category.REDWOOD)).setUnlocalizedName("bop.redwoodStairs"));
|
|
|
|
Blocks.willowStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.willowStairsID, Blocks.planks.get(), Category.WILLOW)).setUnlocalizedName("bop.willowStairs"));
|
|
|
|
Blocks.pineStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.pineStairsID, Blocks.planks.get(), Category.PINE)).setUnlocalizedName("bop.pineStairs"));
|
|
|
|
Blocks.hellBarkStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.hellBarkStairsID, Blocks.planks.get(), Category.HELL_BARK)).setUnlocalizedName("bop.hellBarkStairs"));
|
|
|
|
Blocks.jacarandaStairs = Optional.of((new BlockBOPStairs(BOPConfiguration.jacarandaStairsID, Blocks.planks.get(), Category.JACARANDA)).setUnlocalizedName("bop.jacarandaStairs"));
|
|
|
|
Blocks.leavesColorized = Optional.of((new BlockBOPColorizedLeaves(BOPConfiguration.colourizedLeavesID)).setUnlocalizedName("bop.leavesColorized"));
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void registerBlocks()
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
// Add block registration
|
2013-06-09 00:39:12 +00:00
|
|
|
GameRegistry.registerBlock(Blocks.mud.get(), ItemBOPMud.class, "bop.mud");
|
|
|
|
GameRegistry.registerBlock(Blocks.driedDirt.get(), "bop.driedDirt");
|
|
|
|
GameRegistry.registerBlock(Blocks.redRock.get(), ItemBOPRedRock.class, "bop.redRock");
|
|
|
|
GameRegistry.registerBlock(Blocks.ash.get(), "bop.ash");
|
|
|
|
GameRegistry.registerBlock(Blocks.plants.get(), ItemBOPPlant.class, "bop.plants");
|
|
|
|
GameRegistry.registerBlock(Blocks.flowers.get(), ItemBOPFlower.class, "bop.flowers");
|
|
|
|
GameRegistry.registerBlock(Blocks.mushrooms.get(), ItemBOPMushroom.class, "bop.mushrooms");
|
|
|
|
GameRegistry.registerBlock(Blocks.coral.get(), ItemBOPCoral.class, "bop.coral");
|
|
|
|
GameRegistry.registerBlock(Blocks.willow.get(), ItemBOPWillow.class, "bop.willow");
|
|
|
|
GameRegistry.registerBlock(Blocks.ivy.get(), ItemBOPIvy.class, "bop.ivy");
|
|
|
|
GameRegistry.registerBlock(Blocks.leaves1.get(), ItemBOPLeaves.class, "bop.leaves1");
|
|
|
|
GameRegistry.registerBlock(Blocks.leaves2.get(), ItemBOPLeaves.class, "bop.leaves2");
|
|
|
|
GameRegistry.registerBlock(Blocks.foliage.get(), ItemBOPFoliage.class, "bop.foliage");
|
|
|
|
GameRegistry.registerBlock(Blocks.ashStone.get(), "bop.ashStone");
|
|
|
|
GameRegistry.registerBlock(Blocks.hardIce.get(), "bop.hardIce");
|
|
|
|
GameRegistry.registerBlock(Blocks.leavesFruit.get(), ItemBOPAppleLeaves.class, "bop.leavesFruit");
|
|
|
|
GameRegistry.registerBlock(Blocks.bamboo.get(), ItemBOPBamboo.class, "bop.bamboo");
|
|
|
|
GameRegistry.registerBlock(Blocks.mudBrick.get(), "bop.mudBrick");
|
|
|
|
GameRegistry.registerBlock(Blocks.mudBricksStairs.get(), "bop.mudBricksStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.originGrass.get(), "bop.originGrass");
|
|
|
|
GameRegistry.registerBlock(Blocks.treeMoss.get(), "bop.treeMoss");
|
|
|
|
GameRegistry.registerBlock(Blocks.logs1.get(), ItemBOPLog.class, "bop.wood1");
|
|
|
|
GameRegistry.registerBlock(Blocks.logs2.get(), ItemBOPLog.class, "bop.wood2");
|
|
|
|
GameRegistry.registerBlock(Blocks.logs3.get(), ItemBOPLog.class, "bop.wood3");
|
|
|
|
GameRegistry.registerBlock(Blocks.logs4.get(), ItemBOPLog.class, "bop.wood4");
|
|
|
|
GameRegistry.registerBlock(Blocks.petals.get(), ItemBOPPetals.class, "bop.petals");
|
|
|
|
GameRegistry.registerBlock(Blocks.saplings.get(), ItemBOPSapling.class, "bop.saplings");
|
|
|
|
GameRegistry.registerBlock(Blocks.colorizedSaplings.get(), ItemBOPColorizedSapling.class, "bop.colorizedSaplings");
|
|
|
|
GameRegistry.registerBlock(Blocks.redCobbleStairs.get(), "bop.redCobbleStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.redBricksStairs.get(), "bop.redBricksStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.hardSand.get(), "bop.hardSand");
|
|
|
|
GameRegistry.registerBlock(Blocks.hardDirt.get(), "bop.hardDirt");
|
|
|
|
GameRegistry.registerBlock(Blocks.crystal.get(), "bop.crystal");
|
|
|
|
GameRegistry.registerBlock(Blocks.holyGrass.get(), ItemBOPGrass.class, "bop.holyGrass");
|
|
|
|
GameRegistry.registerBlock(Blocks.holyDirt.get(), "bop.holyDirt");
|
|
|
|
GameRegistry.registerBlock(Blocks.holyStone.get(), ItemBOPSkystone.class, "bop.holyStone");
|
|
|
|
GameRegistry.registerBlock(Blocks.holyCobbleStairs.get(), "bop.holyCobbleStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.holyBricksStairs.get(), "bop.holyBricksStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.promisedPortal.get(), "bop.promisedPortal");
|
|
|
|
GameRegistry.registerBlock(Blocks.amethystOre.get(), ItemBOPAmethyst.class, "bop.amethystOre");
|
|
|
|
GameRegistry.registerBlock(Blocks.moss.get(), ItemBOPMoss.class, "bop.moss");
|
|
|
|
GameRegistry.registerBlock(Blocks.cragRock.get(), "bop.cragRock");
|
|
|
|
GameRegistry.registerBlock(Blocks.cloud.get(), "bop.cloud");
|
|
|
|
|
|
|
|
GameRegistry.registerBlock(Blocks.bones.get(), ItemBOPBones.class, "bop.bones");
|
|
|
|
GameRegistry.registerBlock(Blocks.glass.get(), ItemBOPGlass.class, "bop.glass");
|
|
|
|
GameRegistry.registerBlock(Blocks.altar.get(), ItemBOPAltar.class, "bop.altar");
|
2013-06-25 08:53:40 +00:00
|
|
|
GameRegistry.registerBlock(Blocks.puddle.get(), "bop.puddle");
|
2013-07-01 09:27:31 +00:00
|
|
|
GameRegistry.registerBlock(Blocks.grave.get(), ItemBOPGrave.class, "bop.grave");
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
ItemBOPSlab.setSlabs(Blocks.stoneSingleSlab.get(), Blocks.stoneDoubleSlab.get());
|
2013-06-09 00:39:12 +00:00
|
|
|
GameRegistry.registerBlock(Blocks.stoneDoubleSlab.get(), ItemBOPSlab.class, "bop.stoneDoubleSlab");
|
|
|
|
GameRegistry.registerBlock(Blocks.stoneSingleSlab.get(), ItemBOPSlab.class, "bop.stoneSingleSlab");
|
2013-05-31 10:34:02 +00:00
|
|
|
ItemBOPSlab.setSlabs(Blocks.woodenSingleSlab1.get(), Blocks.woodenDoubleSlab1.get());
|
2013-06-09 00:39:12 +00:00
|
|
|
GameRegistry.registerBlock(Blocks.woodenDoubleSlab1.get(), ItemBOPSlab.class, "bop.woodenDoubleSlab1");
|
|
|
|
GameRegistry.registerBlock(Blocks.woodenSingleSlab1.get(), ItemBOPSlab.class, "bop.woodenSingleSlab1");
|
2013-05-31 10:34:02 +00:00
|
|
|
ItemBOPSlab.setSlabs(Blocks.woodenSingleSlab2.get(), Blocks.woodenDoubleSlab2.get());
|
2013-06-09 00:39:12 +00:00
|
|
|
GameRegistry.registerBlock(Blocks.woodenDoubleSlab2.get(), ItemBOPSlab.class, "bop.woodenDoubleSlab2");
|
|
|
|
GameRegistry.registerBlock(Blocks.woodenSingleSlab2.get(), ItemBOPSlab.class, "bop.woodenSingleSlab2");
|
|
|
|
|
|
|
|
GameRegistry.registerBlock(Blocks.planks.get(), ItemBOPPlank.class, "bop.planks");
|
|
|
|
|
|
|
|
GameRegistry.registerBlock(Blocks.acaciaStairs.get(), "bop.acaciaStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.cherryStairs.get(), "bop.cherryStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.darkStairs.get(), "bop.darkStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.firStairs.get(), "bop.firStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.holyStairs.get(), "bop.holyStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.magicStairs.get(), "bop.magicStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.mangroveStairs.get(), "bop.mangroveStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.palmStairs.get(), "bop.palmStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.redwoodStairs.get(), "bop.redwoodStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.willowStairs.get(), "bop.willowStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.pineStairs.get(), "bop.pineStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.hellBarkStairs.get(), "bop.hellBarkStairs");
|
|
|
|
GameRegistry.registerBlock(Blocks.jacarandaStairs.get(), "bop.jacarandaStairs");
|
|
|
|
|
|
|
|
GameRegistry.registerBlock(Blocks.leavesColorized.get(), ItemBOPColorizedLeaves.class, "bop.leavesColorized");
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
2013-06-07 21:36:52 +00:00
|
|
|
|
|
|
|
private static void registerTileEntities()
|
|
|
|
{
|
2013-06-09 22:45:23 +00:00
|
|
|
GameRegistry.registerTileEntity(TileEntityAltar.class, "tileEntityAltar");
|
2013-07-01 07:33:41 +00:00
|
|
|
GameRegistry.registerTileEntity(TileEntityGrave.class, "tileEntityGrave");
|
2013-06-07 21:36:52 +00:00
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
private static void addGrassPlants()
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 0, 10);
|
2013-05-09 05:38:14 +00:00
|
|
|
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 4, 10);
|
|
|
|
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 9, 10);
|
|
|
|
MinecraftForge.addGrassPlant(Blocks.flowers.get(), 15, 25);
|
|
|
|
MinecraftForge.addGrassPlant(Blocks.foliage.get(), 1, 50);
|
|
|
|
MinecraftForge.addGrassPlant(Blocks.foliage.get(), 2, 100);
|
|
|
|
MinecraftForge.addGrassPlant(Blocks.foliage.get(), 4, 15);
|
2013-05-31 10:34:02 +00:00
|
|
|
MinecraftForge.addGrassPlant(Blocks.foliage.get(), 5, 15);
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
}
|