public class ArrowNockEvent extends PlayerEvent
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 |
---|
ArrowNockEvent(EntityPlayer player,
ItemStack item,
EnumHand hand,
World world,
boolean hasAmmo) |
Modifier and Type | Method and Description |
---|---|
ActionResult<ItemStack> |
getAction() |
ItemStack |
getBow() |
EnumHand |
getHand() |
World |
getWorld() |
boolean |
hasAmmo() |
void |
setAction(ActionResult<ItemStack> action) |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ArrowNockEvent(EntityPlayer player, ItemStack item, EnumHand hand, World world, boolean hasAmmo)
public ItemStack getBow()
public World getWorld()
public EnumHand getHand()
public boolean hasAmmo()
public ActionResult<ItemStack> getAction()
public void setAction(ActionResult<ItemStack> action)