2015-11-02 12:39:44 -08:00
|
|
|
package WayofTime.bloodmagic.api.event;
|
2014-11-07 16:22:29 -05:00
|
|
|
|
2016-03-14 18:55:05 -07:00
|
|
|
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
2015-07-29 08:23:01 -04:00
|
|
|
import net.minecraftforge.fml.common.eventhandler.Event;
|
|
|
|
|
2016-03-14 18:55:05 -07:00
|
|
|
@Cancelable
|
2015-12-30 15:34:40 -05:00
|
|
|
public class AddToNetworkEvent extends Event
|
|
|
|
{
|
2016-03-14 18:55:05 -07:00
|
|
|
public final String ownerNetwork;
|
2015-10-29 20:22:14 -07:00
|
|
|
public int addedAmount;
|
|
|
|
public int maximum;
|
|
|
|
|
|
|
|
/**
|
2015-12-30 15:34:40 -05:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* @param ownerNetwork
|
2016-01-02 17:56:37 -05:00
|
|
|
* Key used for the soul network
|
2015-12-30 15:34:40 -05:00
|
|
|
* @param addedAmount
|
2016-01-02 17:56:37 -05:00
|
|
|
* Amount added
|
2015-12-30 15:34:40 -05:00
|
|
|
* @param maximum
|
2016-01-02 17:56:37 -05:00
|
|
|
* Ceiling that the network can add to
|
2015-10-29 20:22:14 -07:00
|
|
|
*/
|
2015-12-30 15:34:40 -05:00
|
|
|
public AddToNetworkEvent(String ownerNetwork, int addedAmount, int maximum)
|
|
|
|
{
|
2015-10-29 20:22:14 -07:00
|
|
|
this.ownerNetwork = ownerNetwork;
|
|
|
|
this.addedAmount = addedAmount;
|
|
|
|
this.maximum = maximum;
|
|
|
|
}
|
2014-11-07 16:22:29 -05:00
|
|
|
}
|