Пример #1
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.slabRedRock.get();

      thisBlock.setUnlocalizedName("extrabiomes.redrockslab");
      proxy.setBlockHarvestLevel(thisBlock, "pickaxe", 0);

      Extrabiomes.postInitEvent(new RedRockSlabActiveEvent(thisBlock));
    }
Пример #2
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.slabWood.get();

      thisBlock.setUnlocalizedName("extrabiomes.woodslab");
      proxy.setBlockHarvestLevel(thisBlock, "axe", 0);

      proxy.registerFuelHandler(new FuelHandlerWoodSlabs(thisBlock.blockID));
      Extrabiomes.postInitEvent(new WoodSlabActiveEvent(thisBlock));
    }
Пример #3
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.wall.get();

      thisBlock.setUnlocalizedName("extrabiomes.wall");
      proxy.setBlockHarvestLevel(thisBlock, "pickaxe", 0);
      proxy.registerBlock(thisBlock, extrabiomes.utility.MultiItemBlock.class);

      Extrabiomes.postInitEvent(new WallActiveEvent(thisBlock));
    }
Пример #4
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.stairsRedCobble.get();

      thisBlock.setUnlocalizedName("extrabiomes.stairs.redcobble");
      proxy.setBlockHarvestLevel(thisBlock, "pickaxe", 0);
      proxy.registerBlock(thisBlock);

      Extrabiomes.postInitEvent(new RedCobbleStairsActiveEvent(thisBlock));
    }
Пример #5
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.stairsAcacia.get();

      thisBlock.setUnlocalizedName("extrabiomes.stairs.acacia");
      proxy.setBlockHarvestLevel(thisBlock, "axe", 0);
      proxy.registerBlock(thisBlock);

      proxy.registerOre("stairWood", thisBlock);
      Extrabiomes.postInitEvent(new AcaciaStairsActiveEvent(thisBlock));
    }
Пример #6
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.slabRedRockDouble.get();

      thisBlock.setUnlocalizedName("extrabiomes.redrockslab");
      proxy.setBlockHarvestLevel(thisBlock, "pickaxe", 0);
      ItemRedRockSlab.setSlabs(
          (BlockHalfSlab) Stuff.slabRedRock.get(), (BlockHalfSlab) Stuff.slabRedRockDouble.get());
      proxy.registerBlock(
          Stuff.slabRedRock.get(), extrabiomes.module.fabrica.block.ItemRedRockSlab.class);
      proxy.registerBlock(thisBlock, extrabiomes.module.fabrica.block.ItemRedRockSlab.class);
    }
Пример #7
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.planks.get();

      thisBlock.setUnlocalizedName("extrabiomes.planks");
      proxy.setBlockHarvestLevel(thisBlock, "axe", 0);
      proxy.registerBlock(thisBlock, extrabiomes.utility.MultiItemBlock.class);
      for (final BlockCustomWood.BlockType type : BlockCustomWood.BlockType.values())
        FacadeHelper.addBuildcraftFacade(thisBlock.blockID, type.metadata());

      proxy.registerOreInAllSubblocks("plankWood", thisBlock);

      Extrabiomes.postInitEvent(new PlankActiveEvent(thisBlock));
    }
Пример #8
0
    @Override
    protected void prepare() {
      final CommonProxy proxy = Extrabiomes.proxy;
      final Block thisBlock = Stuff.slabWoodDouble.get();

      thisBlock.setUnlocalizedName("extrabiomes.woodslab");
      proxy.setBlockHarvestLevel(thisBlock, "axe", 0);
      ItemWoodSlab.setSlabs(
          (BlockHalfSlab) Stuff.slabWood.get(), (BlockHalfSlab) Stuff.slabWoodDouble.get());
      proxy.registerBlock(
          Stuff.slabWood.get(), extrabiomes.module.fabrica.block.ItemWoodSlab.class);
      proxy.registerBlock(thisBlock, extrabiomes.module.fabrica.block.ItemWoodSlab.class);

      proxy.registerOreInAllSubblocks("slabWood", Stuff.slabWood.get());

      new ItemStack(Stuff.slabWood.get(), 1, BlockCustomWoodSlab.BlockType.FIR.metadata());
      new ItemStack(Stuff.slabWood.get(), 1, BlockCustomWoodSlab.BlockType.REDWOOD.metadata());
      new ItemStack(Stuff.slabWood.get(), 1, BlockCustomWoodSlab.BlockType.ACACIA.metadata());
    }