Package mods.railcraft.api.electricity

Examples of mods.railcraft.api.electricity.IElectricMinecart


        if (Game.isNotHost(thePlayer.worldObj))
            return;

        if (stack != null && stack.getItem() instanceof ItemElectricMeter)
            if (entity instanceof IElectricMinecart) {
                IElectricMinecart cart = (IElectricMinecart) entity;
                IElectricMinecart.ChargeHandler ch = cart.getChargeHandler();
                ChatPlugin.sendLocalizedChat(thePlayer, "railcraft.gui.electric.meter.charge", ch.getCharge(), ch.getCapacity(), ch.getLosses());
                event.setCanceled(true);
            }
    }
View Full Code Here

TOP

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

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.