Package mods.railcraft.api.electricity

Examples of mods.railcraft.api.electricity.IElectricGrid


            }

            wireCons.addAll(plugCons);

            boolean powered = false;
            IElectricGrid above = GridTools.getGridObjectAt(world, x, y + 1, z);
            if (above != null && TrackTools.isRailBlockAt(world, x, y + 1, z)) {
                wireCons.add(ForgeDirection.UP);
                plugCons.add(ForgeDirection.UP);
//                renderPlatform(renderblocks, world, x, y, z, block);
                powered = true;
View Full Code Here


    @Override
    public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
        if (Game.isNotHost(world))
            return false;
        IElectricGrid gridObject = GridTools.getGridObjectAt(world, x, y, z);
        boolean returnValue = false;
        if (gridObject != null) {
            IElectricGrid.ChargeHandler handler = gridObject.getChargeHandler();
            ChatPlugin.sendLocalizedChat(player, "railcraft.gui.electric.meter.charge", handler.getCharge(), handler.getCapacity(), handler.getLosses());
            returnValue = true;
        }
        return returnValue;
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.api.electricity.IElectricGrid

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.