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
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) |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ArrowLooseEvent(EntityPlayer player, ItemStack bow, World world, int charge, boolean hasAmmo)