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
.HasResult
MinecraftForge#EVENT_BUS
.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
ItemStack |
bow |
int |
charge |
entityPlayer
entityLiving
entity
Constructor and Description |
---|
ArrowLooseEvent(EntityPlayer player,
ItemStack bow,
int charge) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final ItemStack bow
public int charge
public ArrowLooseEvent(EntityPlayer player, ItemStack bow, int charge)