Package buildcraft.api.blueprints

Examples of buildcraft.api.blueprints.ISchematicRegistry


    // Register save handler
    MinecraftForge.EVENT_BUS.register(new EventHandlerBuilders());

    // Standard blocks
    ISchematicRegistry schemes = BuilderAPI.schematicRegistry;
    schemes.registerSchematicBlock(Blocks.snow, SchematicIgnore.class);
    schemes.registerSchematicBlock(Blocks.tallgrass, SchematicIgnore.class);
    schemes.registerSchematicBlock(Blocks.double_plant, SchematicIgnore.class);
    schemes.registerSchematicBlock(Blocks.ice, SchematicIgnore.class);
    schemes.registerSchematicBlock(Blocks.piston_head, SchematicIgnore.class);

    schemes.registerSchematicBlock(Blocks.dirt, SchematicDirt.class);
    schemes.registerSchematicBlock(Blocks.grass, SchematicDirt.class);

    schemes.registerSchematicBlock(Blocks.cactus, SchematicCactus.class);

    schemes.registerSchematicBlock(Blocks.farmland, SchematicFarmland.class);
    schemes.registerSchematicBlock(Blocks.wheat, SchematicSeeds.class, Items.wheat_seeds);
    schemes.registerSchematicBlock(Blocks.pumpkin_stem, SchematicSeeds.class, Items.pumpkin_seeds);
    schemes.registerSchematicBlock(Blocks.melon_stem, SchematicSeeds.class, Items.melon_seeds);
    schemes.registerSchematicBlock(Blocks.nether_wart, SchematicSeeds.class, Items.nether_wart);

    schemes.registerSchematicBlock(Blocks.torch, SchematicWallSide.class);
    schemes.registerSchematicBlock(Blocks.redstone_torch, SchematicWallSide.class);
    schemes.registerSchematicBlock(Blocks.unlit_redstone_torch, SchematicWallSide.class);

    schemes.registerSchematicBlock(Blocks.tripwire_hook, SchematicTripWireHook.class);

    schemes.registerSchematicBlock(Blocks.skull, SchematicSkull.class);

    schemes.registerSchematicBlock(Blocks.ladder, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(Blocks.fence_gate, SchematicRotateMeta.class, new int[]{0, 1, 2, 3}, true);
    schemes.registerSchematicBlock(Blocks.log, SchematicRotateMeta.class, new int[]{8, 4, 8, 4}, true);
    schemes.registerSchematicBlock(Blocks.log2, SchematicRotateMeta.class, new int[]{8, 4, 8, 4}, true);
    schemes.registerSchematicBlock(Blocks.hay_block, SchematicRotateMeta.class, new int[]{8, 4, 8, 4}, true);
    schemes.registerSchematicBlock(Blocks.quartz_block, SchematicRotateMeta.class, new int[]{4, 3, 4, 3}, true);
    schemes.registerSchematicBlock(Blocks.hopper, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(Blocks.anvil, SchematicRotateMeta.class, new int[]{0, 1, 2, 3}, true);

    schemes.registerSchematicBlock(Blocks.furnace, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(Blocks.lit_furnace, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(Blocks.chest, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(Blocks.dispenser, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(Blocks.dropper, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);

    schemes.registerSchematicBlock(Blocks.ender_chest, SchematicEnderChest.class);

    schemes.registerSchematicBlock(Blocks.vine, SchematicRotateMeta.class, new int[]{1, 4, 8, 2}, false);
    schemes.registerSchematicBlock(Blocks.trapdoor, SchematicRotateMeta.class, new int[]{0, 1, 2, 3}, false);

    schemes.registerSchematicBlock(Blocks.wooden_button, SchematicLever.class);
    schemes.registerSchematicBlock(Blocks.stone_button, SchematicLever.class);
    schemes.registerSchematicBlock(Blocks.lever, SchematicLever.class);

    schemes.registerSchematicBlock(Blocks.stone, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.gold_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.iron_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.coal_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.lapis_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.diamond_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.redstone_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.lit_redstone_ore, SchematicStone.class);
    schemes.registerSchematicBlock(Blocks.emerald_ore, SchematicStone.class);

    schemes.registerSchematicBlock(Blocks.gravel, SchematicGravel.class);

    schemes.registerSchematicBlock(Blocks.redstone_wire, SchematicRedstoneWire.class, new ItemStack(Items.redstone));
    schemes.registerSchematicBlock(Blocks.cake, SchematicCustomStack.class, new ItemStack(Items.cake));
    schemes.registerSchematicBlock(Blocks.glowstone, SchematicCustomStack.class, new ItemStack(Blocks.glowstone));

    schemes.registerSchematicBlock(Blocks.powered_repeater, SchematicRedstoneDiode.class, Items.repeater);
    schemes.registerSchematicBlock(Blocks.unpowered_repeater, SchematicRedstoneDiode.class, Items.repeater);
    schemes.registerSchematicBlock(Blocks.powered_comparator, SchematicRedstoneDiode.class, Items.comparator);
    schemes.registerSchematicBlock(Blocks.unpowered_comparator, SchematicRedstoneDiode.class, Items.comparator);

    schemes.registerSchematicBlock(Blocks.redstone_lamp, SchematicRedstoneLamp.class);
    schemes.registerSchematicBlock(Blocks.lit_redstone_lamp, SchematicRedstoneLamp.class);

    schemes.registerSchematicBlock(Blocks.glass_pane, SchematicGlassPane.class);
    schemes.registerSchematicBlock(Blocks.stained_glass_pane, SchematicGlassPane.class);

    schemes.registerSchematicBlock(Blocks.piston, SchematicPiston.class);
    schemes.registerSchematicBlock(Blocks.piston_extension, SchematicPiston.class);
    schemes.registerSchematicBlock(Blocks.sticky_piston, SchematicPiston.class);

    schemes.registerSchematicBlock(Blocks.lit_pumpkin, SchematicPumpkin.class);

    schemes.registerSchematicBlock(Blocks.oak_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.stone_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.brick_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.stone_brick_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.nether_brick_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.sandstone_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.spruce_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.birch_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.jungle_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.quartz_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.acacia_stairs, SchematicStairs.class);
    schemes.registerSchematicBlock(Blocks.dark_oak_stairs, SchematicStairs.class);

    schemes.registerSchematicBlock(Blocks.wooden_door, SchematicDoor.class, new ItemStack(Items.wooden_door));
    schemes.registerSchematicBlock(Blocks.iron_door, SchematicDoor.class, new ItemStack(Items.iron_door));

    schemes.registerSchematicBlock(Blocks.bed, SchematicBed.class);

    schemes.registerSchematicBlock(Blocks.wall_sign, SchematicSign.class, true);
    schemes.registerSchematicBlock(Blocks.standing_sign, SchematicSign.class, false);

    schemes.registerSchematicBlock(Blocks.portal, SchematicPortal.class);

    schemes.registerSchematicBlock(Blocks.rail, SchematicRail.class);
    schemes.registerSchematicBlock(Blocks.activator_rail, SchematicRail.class);
    schemes.registerSchematicBlock(Blocks.detector_rail, SchematicRail.class);
    schemes.registerSchematicBlock(Blocks.golden_rail, SchematicRail.class);

    schemes.registerSchematicBlock(Blocks.fire, SchematicFire.class);

    schemes.registerSchematicBlock(Blocks.bedrock, SchematicBlockCreative.class);

    schemes.registerSchematicBlock(Blocks.mob_spawner, SchematicTileCreative.class);

    schemes.registerSchematicBlock(Blocks.glass, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.stone_slab, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.double_stone_slab, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.wooden_slab, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.double_wooden_slab, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.stained_glass, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.fence, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.daylight_detector, SchematicStandalone.class);
    schemes.registerSchematicBlock(Blocks.iron_bars, SchematicStandalone.class);

    // Standard entities

    schemes.registerSchematicEntity(EntityMinecartEmpty.class, SchematicMinecart.class, Items.minecart);
    schemes.registerSchematicEntity(EntityMinecartFurnace.class, SchematicMinecart.class, Items.furnace_minecart);
    schemes.registerSchematicEntity(EntityMinecartTNT.class, SchematicMinecart.class, Items.tnt_minecart);
    schemes.registerSchematicEntity(EntityMinecartChest.class, SchematicMinecart.class, Items.chest_minecart);
    schemes.registerSchematicEntity(EntityMinecartHopper.class, SchematicMinecart.class, Items.hopper_minecart);

    schemes.registerSchematicEntity(EntityPainting.class, SchematicHanging.class, Items.painting);
    schemes.registerSchematicEntity(EntityItemFrame.class, SchematicHanging.class, Items.item_frame);

    // BuildCraft blocks

    schemes.registerSchematicBlock(architectBlock, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);
    schemes.registerSchematicBlock(builderBlock, SchematicRotateMeta.class, new int[]{2, 5, 3, 4}, true);

    schemes.registerSchematicBlock(markerBlock, SchematicWallSide.class);
    schemes.registerSchematicBlock(pathMarkerBlock, SchematicWallSide.class);
    schemes.registerSchematicBlock(constructionMarkerBlock, SchematicWallSide.class);

    // Factories required to save entities in world

    SchematicFactory.registerSchematicFactory(SchematicBlock.class, new SchematicFactoryBlock());
    SchematicFactory.registerSchematicFactory(SchematicMask.class, new SchematicFactoryMask());
View Full Code Here

TOP

Related Classes of buildcraft.api.blueprints.ISchematicRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.