public class ArrowNockEvent extends PlayerEvent
ItemBow.onItemRightClick(World, EntityPlayer, EnumHand)
.MinecraftForge.EVENT_BUS
.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
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, @Nonnull ItemStack item, EnumHand hand, World world, boolean hasAmmo)
@Nonnull public ItemStack getBow()
public World getWorld()
public EnumHand getHand()
public boolean hasAmmo()
public ActionResult<ItemStack> getAction()
public void setAction(ActionResult<ItemStack> action)