public class ArrowLooseEvent extends PlayerEvent
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.StopTrackingLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| 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, setuppublic ArrowLooseEvent(EntityPlayer player, ItemStack bow, World world, int charge, boolean hasAmmo)