2015-11-02 20:39:44 +00:00
|
|
|
package WayofTime.bloodmagic.api.event;
|
2014-11-07 18:45:02 +00:00
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-07-29 12:23:01 +00:00
|
|
|
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Event;
|
2014-11-07 18:45:02 +00:00
|
|
|
|
2015-01-31 23:37:17 +00:00
|
|
|
@Cancelable
|
2017-08-16 04:30:48 +00:00
|
|
|
public class ItemBindEvent extends Event {
|
2015-10-30 03:22:14 +00:00
|
|
|
public final EntityPlayer player;
|
|
|
|
public String key;
|
|
|
|
public ItemStack itemStack;
|
|
|
|
|
2016-03-23 01:10:05 +00:00
|
|
|
/**
|
2016-04-05 20:16:17 +00:00
|
|
|
* This event is called whenever a player attempts to bind a
|
|
|
|
* {@link WayofTime.bloodmagic.api.iface.IBindable} item.
|
2017-08-16 04:30:48 +00:00
|
|
|
*
|
|
|
|
* @param player The player doing the binding
|
|
|
|
* @param key The UUID of the player doing the binding
|
|
|
|
* @param itemStack The {@link ItemStack} that the player is binding
|
|
|
|
* <p>
|
|
|
|
* This event is {@link Cancelable}.<br>
|
2016-03-23 01:10:05 +00:00
|
|
|
*/
|
2017-08-16 04:30:48 +00:00
|
|
|
public ItemBindEvent(EntityPlayer player, String key, ItemStack itemStack) {
|
2015-10-30 03:22:14 +00:00
|
|
|
super();
|
|
|
|
this.player = player;
|
|
|
|
this.key = key;
|
|
|
|
this.itemStack = itemStack;
|
|
|
|
}
|
2014-11-07 18:45:02 +00:00
|
|
|
}
|