public class ArrowLooseEvent extends PlayerEvent
ItemBow.onPlayerStoppedUsing(ItemStack, World, EntityLivingBase, int).bow contains the ItemBow ItemStack that was used in this event.charge contains the value for how much the player had charged before stopping the shot.Cancelable.HasResultMinecraftForge.EVENT_BUS.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.VisibilityLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
private ItemStack |
bow |
private int |
charge |
private boolean |
hasAmmo |
private World |
world |
| Constructor and Description |
|---|
ArrowLooseEvent(EntityPlayer player,
ItemStack bow,
World world,
int charge,
boolean hasAmmo) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getBow() |
int |
getCharge() |
World |
getWorld() |
boolean |
hasAmmo() |
void |
setCharge(int charge) |
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setupprivate final ItemStack bow
private final World world
private final boolean hasAmmo
private int charge
public ArrowLooseEvent(EntityPlayer player, @Nonnull ItemStack bow, World world, int charge, boolean hasAmmo)