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.VisibilityLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
private ActionResult<ItemStack> |
action |
private ItemStack |
bow |
private EnumHand |
hand |
private boolean |
hasAmmo |
private World |
world |
| 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) |
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setupprivate final ItemStack bow
private final EnumHand hand
private final World world
private final boolean hasAmmo
private ActionResult<ItemStack> action
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)