2012-08-06 22:07:53 +00:00
|
|
|
package net.minecraftforge.event.entity.player;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
|
|
|
import net.minecraft.src.EntityPlayer;
|
|
|
|
import net.minecraft.src.ItemStack;
|
|
|
|
|
|
|
|
public class ArrowLooseEvent extends PlayerEvent
|
|
|
|
{
|
2012-08-06 22:07:53 +00:00
|
|
|
public final ItemStack bow;
|
|
|
|
public int charge;
|
2012-08-05 10:20:07 +00:00
|
|
|
|
|
|
|
public ArrowLooseEvent(EntityPlayer player, ItemStack bow, int charge)
|
|
|
|
{
|
|
|
|
super(player);
|
|
|
|
this.bow = bow;
|
|
|
|
this.charge = charge;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isCancelable()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|