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