Examples of EnergyProduceEvent


Examples of universalelectricity.api.net.NetworkEvent.EnergyProduceEvent

        long conductorBuffer = 0;
        //No energy nothing should happen
        if (amount > 0)
        {
            //Fire event giving other mods a change to interact with this network
            EnergyProduceEvent evt = new EnergyProduceEvent(this, conductor, amount, doReceive);
            MinecraftForge.EVENT_BUS.post(evt);

            if (!evt.isCanceled())
            {
                if (conductorBuffers.containsKey(conductor))
                {
                    conductorBuffer = conductorBuffers.get(conductor);
                }
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.