public class ArrowNockEvent extends PlayerEvent
ItemBow#onItemRightClick(World, EntityPlayer, EnumHand).MinecraftForge.EVENT_BUS.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.VisibilityLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight| Constructor and Description |
|---|
ArrowNockEvent(PlayerEntity player,
ItemStack item,
Hand hand,
World world,
boolean hasAmmo) |
| Modifier and Type | Method and Description |
|---|---|
ActionResult<ItemStack> |
getAction() |
ItemStack |
getBow() |
Hand |
getHand() |
World |
getWorld() |
boolean |
hasAmmo() |
void |
setAction(ActionResult<ItemStack> action) |
getEntityPlayer, getPlayergetEntityLivinggetEntitypublic ArrowNockEvent(PlayerEntity player, @Nonnull ItemStack item, Hand hand, World world, boolean hasAmmo)
@Nonnull public ItemStack getBow()
public World getWorld()
public Hand getHand()
public boolean hasAmmo()
public ActionResult<ItemStack> getAction()
public void setAction(ActionResult<ItemStack> action)