Examples of IElectricGrid


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

Examples of mods.railcraft.api.electricity.IElectricGrid

    @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
Copyright © 2018 www.massapi.com. 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.