Search in sources :

Example 1 with BlockGregPlanks

use of gregtech.common.blocks.wood.BlockGregPlanks in project GregTech by GregTechCEu.

the class MetaBlocks method init.

public static void init() {
    GregTechAPI.MACHINE = MACHINE = new BlockMachine();
    MACHINE.setRegistryName("machine");
    for (Insulation ins : Insulation.values()) {
        CABLES[ins.ordinal()] = new BlockCable(ins);
        CABLES[ins.ordinal()].setRegistryName(ins.getName());
    }
    for (FluidPipeType type : FluidPipeType.values()) {
        FLUID_PIPES[type.ordinal()] = new BlockFluidPipe(type);
        FLUID_PIPES[type.ordinal()].setRegistryName(String.format("fluid_pipe_%s", type.name));
    }
    for (ItemPipeType type : ItemPipeType.values()) {
        ITEM_PIPES[type.ordinal()] = new BlockItemPipe(type);
        ITEM_PIPES[type.ordinal()].setRegistryName(String.format("item_pipe_%s", type.name));
    }
    BOILER_CASING = new BlockBoilerCasing();
    BOILER_CASING.setRegistryName("boiler_casing");
    BOILER_FIREBOX_CASING = new BlockFireboxCasing();
    BOILER_FIREBOX_CASING.setRegistryName("boiler_firebox_casing");
    METAL_CASING = new BlockMetalCasing();
    METAL_CASING.setRegistryName("metal_casing");
    TURBINE_CASING = new BlockTurbineCasing();
    TURBINE_CASING.setRegistryName("turbine_casing");
    MACHINE_CASING = new BlockMachineCasing();
    MACHINE_CASING.setRegistryName("machine_casing");
    STEAM_CASING = new BlockSteamCasing();
    STEAM_CASING.setRegistryName("steam_casing");
    MULTIBLOCK_CASING = new BlockMultiblockCasing();
    MULTIBLOCK_CASING.setRegistryName("multiblock_casing");
    TRANSPARENT_CASING = new BlockGlassCasing();
    TRANSPARENT_CASING.setRegistryName("transparent_casing");
    WIRE_COIL = new BlockWireCoil();
    WIRE_COIL.setRegistryName("wire_coil");
    FUSION_CASING = new BlockFusionCasing();
    FUSION_CASING.setRegistryName("fusion_casing");
    WARNING_SIGN = new BlockWarningSign();
    WARNING_SIGN.setRegistryName("warning_sign");
    HERMETIC_CASING = new BlockHermeticCasing();
    HERMETIC_CASING.setRegistryName("hermetic_casing");
    ASPHALT = new BlockAsphalt();
    ASPHALT.setRegistryName("asphalt");
    STONE_SMOOTH = new BlockStoneSmooth();
    STONE_SMOOTH.setRegistryName("stone_smooth");
    STONE_COBBLE = new BlockStoneCobble();
    STONE_COBBLE.setRegistryName("stone_cobble");
    STONE_COBBLE_MOSSY = new BlockStoneCobbleMossy();
    STONE_COBBLE_MOSSY.setRegistryName("stone_cobble_mossy");
    STONE_POLISHED = new BlockStonePolished();
    STONE_POLISHED.setRegistryName("stone_polished");
    STONE_BRICKS = new BlockStoneBricks();
    STONE_BRICKS.setRegistryName("stone_bricks");
    STONE_BRICKS_CRACKED = new BlockStoneBricksCracked();
    STONE_BRICKS_CRACKED.setRegistryName("stone_bricks_cracked");
    STONE_BRICKS_MOSSY = new BlockStoneBricksMossy();
    STONE_BRICKS_MOSSY.setRegistryName("stone_bricks_mossy");
    STONE_CHISELED = new BlockStoneChiseled();
    STONE_CHISELED.setRegistryName("stone_chiseled");
    STONE_TILED = new BlockStoneTiled();
    STONE_TILED.setRegistryName("stone_tiled");
    STONE_TILED_SMALL = new BlockStoneTiledSmall();
    STONE_TILED_SMALL.setRegistryName("stone_tiled_small");
    STONE_BRICKS_SMALL = new BlockStoneBricksSmall();
    STONE_BRICKS_SMALL.setRegistryName("stone_bricks_small");
    STONE_WINDMILL_A = new BlockStoneWindmillA();
    STONE_WINDMILL_A.setRegistryName("stone_windmill_a");
    STONE_WINDMILL_B = new BlockStoneWindmillB();
    STONE_WINDMILL_B.setRegistryName("stone_windmill_b");
    STONE_BRICKS_SQUARE = new BlockStoneBricksSquare();
    STONE_BRICKS_SQUARE.setRegistryName("stone_bricks_square");
    FOAM = new BlockFoam(false);
    FOAM.setRegistryName("foam");
    REINFORCED_FOAM = new BlockFoam(true);
    REINFORCED_FOAM.setRegistryName("reinforced_foam");
    PETRIFIED_FOAM = new BlockPetrifiedFoam(false);
    PETRIFIED_FOAM.setRegistryName("petrified_foam");
    REINFORCED_PETRIFIED_FOAM = new BlockPetrifiedFoam(true);
    REINFORCED_PETRIFIED_FOAM.setRegistryName("reinforced_petrified_foam");
    RUBBER_LOG = new BlockRubberLog();
    RUBBER_LOG.setRegistryName("rubber_log");
    RUBBER_LEAVES = new BlockRubberLeaves();
    RUBBER_LEAVES.setRegistryName("rubber_leaves");
    RUBBER_SAPLING = new BlockRubberSapling();
    RUBBER_SAPLING.setRegistryName("rubber_sapling");
    PLANKS = new BlockGregPlanks();
    PLANKS.setRegistryName("planks");
    createGeneratedBlock(m -> m.hasProperty(PropertyKey.DUST) && m.hasFlag(GENERATE_FRAME), MetaBlocks::createFrameBlock);
    createGeneratedBlock(m -> m.hasProperty(PropertyKey.ORE) && m.hasProperty(PropertyKey.DUST), MetaBlocks::createSurfaceRockBlock);
    createGeneratedBlock(material -> (material.hasProperty(PropertyKey.INGOT) || material.hasProperty(PropertyKey.GEM) || material.hasFlag(FORCE_GENERATE_BLOCK)) && !OrePrefix.block.isIgnored(material), MetaBlocks::createCompressedBlock);
    registerTileEntity();
    // not sure if that's a good place for that, but i don't want to make a dedicated method for that
    // could possibly override block methods, but since these props don't depend on state why not just use nice and simple vanilla method
    Blocks.FIRE.setFireInfo(RUBBER_LOG, 5, 5);
    Blocks.FIRE.setFireInfo(RUBBER_LEAVES, 30, 60);
    Blocks.FIRE.setFireInfo(PLANKS, 5, 20);
}
Also used : BlockItemPipe(gregtech.common.pipelike.itempipe.BlockItemPipe) BlockMachine(gregtech.api.block.machines.BlockMachine) BlockPetrifiedFoam(gregtech.common.blocks.foam.BlockPetrifiedFoam) BlockFluidPipe(gregtech.common.pipelike.fluidpipe.BlockFluidPipe) BlockRubberLog(gregtech.common.blocks.wood.BlockRubberLog) ItemPipeType(gregtech.common.pipelike.itempipe.ItemPipeType) FluidPipeType(gregtech.common.pipelike.fluidpipe.FluidPipeType) Insulation(gregtech.common.pipelike.cable.Insulation) BlockGregPlanks(gregtech.common.blocks.wood.BlockGregPlanks) BlockRubberSapling(gregtech.common.blocks.wood.BlockRubberSapling) BlockFoam(gregtech.common.blocks.foam.BlockFoam) BlockCable(gregtech.common.pipelike.cable.BlockCable) BlockRubberLeaves(gregtech.common.blocks.wood.BlockRubberLeaves)

Aggregations

BlockMachine (gregtech.api.block.machines.BlockMachine)1 BlockFoam (gregtech.common.blocks.foam.BlockFoam)1 BlockPetrifiedFoam (gregtech.common.blocks.foam.BlockPetrifiedFoam)1 BlockGregPlanks (gregtech.common.blocks.wood.BlockGregPlanks)1 BlockRubberLeaves (gregtech.common.blocks.wood.BlockRubberLeaves)1 BlockRubberLog (gregtech.common.blocks.wood.BlockRubberLog)1 BlockRubberSapling (gregtech.common.blocks.wood.BlockRubberSapling)1 BlockCable (gregtech.common.pipelike.cable.BlockCable)1 Insulation (gregtech.common.pipelike.cable.Insulation)1 BlockFluidPipe (gregtech.common.pipelike.fluidpipe.BlockFluidPipe)1 FluidPipeType (gregtech.common.pipelike.fluidpipe.FluidPipeType)1 BlockItemPipe (gregtech.common.pipelike.itempipe.BlockItemPipe)1 ItemPipeType (gregtech.common.pipelike.itempipe.ItemPipeType)1