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.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private ActionResult<ItemStack> |
action |
private ItemStack |
bow |
private Hand |
hand |
private boolean |
hasAmmo |
private World |
world |
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) |
getPlayer
getEntityLiving
getEntity
private final ItemStack bow
private final Hand hand
private final World world
private final boolean hasAmmo
private ActionResult<ItemStack> action
public 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)