public static class PlayerInteractEvent.RightClickItem extends PlayerInteractEvent
Item.onItemRightClick(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand).
Note that this is NOT fired if the player is targeting a block PlayerInteractEvent.RightClickBlock or entity PlayerInteractEvent.EntityInteract PlayerInteractEvent.EntityInteractSpecific.
Let result be the return value of Item.onItemRightClick(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand), or PlayerInteractEvent.cancellationResult if the event is cancelled.
If we are on the client and result is not EnumActionResult#SUCCESS, the client will then continue to other hands.PlayerInteractEvent.EntityInteract, PlayerInteractEvent.EntityInteractSpecific, PlayerInteractEvent.LeftClickBlock, PlayerInteractEvent.LeftClickEmpty, PlayerInteractEvent.RightClickBlock, PlayerInteractEvent.RightClickEmpty, PlayerInteractEvent.RightClickItemPlayerEvent.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.EyeHeightEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
RightClickItem(PlayerEntity player,
Hand hand) |
getCancellationResult, getFace, getHand, getItemStack, getPos, getSide, getWorld, setCancellationResultgetPlayergetEntityLivinggetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic RightClickItem(PlayerEntity player, Hand hand)