/FileExtraction/Java_unseen/trychen_ChinaCraft/src/main/java/unstudio/chinacraft/event/jade/PlayerUseJadeEvent.java
package unstudio.chinacraft.event.jade;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.event.entity.player.PlayerEvent;

import cpw.mods.fml.common.eventhandler.Cancelable;

/**
 * Created by trych on 2016/1/9.
 */

public class PlayerUseJadeEvent extends PlayerEvent {
    public final ItemStack itemStack;

    public PlayerUseJadeEvent(EntityPlayer player, ItemStack itemStack) {
        super(player);
        this.itemStack = itemStack;
    }

    @Cancelable
    public static class ItemRightClick extends PlayerUseJadeEvent {
        public ItemRightClick(EntityPlayer player, ItemStack itemStack) {
            super(player, itemStack);
        }
    }

    @Cancelable
    public static class Hurt extends PlayerUseJadeEvent {
        public LivingHurtEvent hurtEvent;

        public Hurt(LivingHurtEvent event, EntityPlayer entityPlayer, ItemStack itemStack) {
            super(entityPlayer, itemStack);
            this.hurtEvent = event;
        }
    }
}
