2015-12-29 14:32:35 -05:00
|
|
|
package WayofTime.bloodmagic.api.event;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Event;
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public class BoundToolEvent extends Event
|
|
|
|
{
|
2015-12-29 14:32:35 -05:00
|
|
|
public EntityPlayer player;
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public BoundToolEvent(EntityPlayer player)
|
|
|
|
{
|
2015-12-29 14:32:35 -05:00
|
|
|
this.player = player;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Cancelable
|
2015-12-30 15:34:40 -05:00
|
|
|
public static class Charge extends BoundToolEvent
|
|
|
|
{
|
2015-12-29 14:32:35 -05:00
|
|
|
|
|
|
|
public ItemStack result;
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public Charge(EntityPlayer player, ItemStack result)
|
|
|
|
{
|
2015-12-29 14:32:35 -05:00
|
|
|
super(player);
|
|
|
|
this.result = result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Cancelable
|
2015-12-30 15:34:40 -05:00
|
|
|
public static class Release extends BoundToolEvent
|
|
|
|
{
|
2015-12-29 14:32:35 -05:00
|
|
|
|
|
|
|
public final ItemStack boundTool;
|
|
|
|
public int charge;
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public Release(EntityPlayer player, ItemStack boundTool, int charge)
|
|
|
|
{
|
2015-12-29 14:32:35 -05:00
|
|
|
super(player);
|
|
|
|
this.boundTool = boundTool;
|
|
|
|
this.charge = charge;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|