Package mods.railcraft.common.blocks.machine.delta

Examples of mods.railcraft.common.blocks.machine.delta.TileWire


            renderWire(renderblocks, world, x, y, z, block, wireCons);
            renderPlug(renderblocks, world, x, y, z, block, plugCons);

            TileEntity tile = WorldPlugin.getBlockTile(world, x, y, z);
            if (tile instanceof TileWire) {
                TileWire wire = (TileWire) tile;
                if (wire.getAddon() == AddonType.FRAME) {
                    BlockFrame.poweredTexture = powered;
                    renderFrame(renderblocks, world, x, y, z, block);
                    BlockFrame.poweredTexture = false;
                }
            }
View Full Code Here


        ItemStack current = player.getCurrentEquippedItem();
        if (current != null && InvTools.isItemEqualIgnoreNBT(current, EnumMachineDelta.WIRE.getItem()))
            if (WorldPlugin.setBlock(world, x, y, z, EnumMachineDelta.WIRE.getBlock(), EnumMachineDelta.WIRE.ordinal(), 2)) {
                TileEntity tile = WorldPlugin.getBlockTile(world, x, y, z);
                if (tile instanceof TileWire) {
                    TileWire wire = (TileWire) tile;
                    wire.setAddon(AddonType.FRAME);
                }
                if (!player.capabilities.isCreativeMode)
                    player.setCurrentItemOrArmor(0, InvTools.depleteItem(current));
                return true;
            }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.blocks.machine.delta.TileWire

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.