BloodMagic/src/main/java/WayofTime/bloodmagic/api/event/AddToNetworkEvent.java

27 lines
932 B
Java
Raw Normal View History

package WayofTime.bloodmagic.api.event;
2014-11-07 21:22:29 +00:00
import net.minecraftforge.fml.common.eventhandler.Cancelable;
2015-07-29 12:23:01 +00:00
import net.minecraftforge.fml.common.eventhandler.Event;
@Cancelable
2017-08-16 04:30:48 +00:00
public class AddToNetworkEvent extends Event {
public final String ownerNetwork;
public int addedAmount;
public int maximum;
/**
* This event is called whenever the network is added to. If cancelled, no
* LP will be drained from the source. If result is set to Result.DENY, the
* LP will still be drained but the soul network will not be added to.
2017-08-16 04:30:48 +00:00
*
* @param ownerNetwork Key used for the soul network
* @param addedAmount Amount added
* @param maximum Ceiling that the network can add to
*/
2017-08-16 04:30:48 +00:00
public AddToNetworkEvent(String ownerNetwork, int addedAmount, int maximum) {
this.ownerNetwork = ownerNetwork;
this.addedAmount = addedAmount;
this.maximum = maximum;
}
2014-11-07 21:22:29 +00:00
}