Uses of Enum Class
net.minecraft.world.InteractionHand
Packages that use InteractionHand
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of InteractionHand in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as InteractionHandConstructors in net.minecraft.client.gui.screens.inventory with parameters of type InteractionHandModifierConstructorDescriptionBookEditScreen
(Player pOwner, ItemStack pBook, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type InteractionHandModifier and TypeMethodDescriptionMultiPlayerGameMode.interact
(Player pPlayer, Entity pTarget, InteractionHand pHand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt
(Player pPlayer, Entity pTarget, EntityHitResult pRay, InteractionHand pHand) Handles right-clicking an entity from the entities side, sends a packet to the server.private InteractionResult
MultiPlayerGameMode.performUseItemOn
(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) MultiPlayerGameMode.useItem
(Player pPlayer, InteractionHand pHand) MultiPlayerGameMode.useItemOn
(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) -
Uses of InteractionHand in net.minecraft.client.player
Fields in net.minecraft.client.player declared as InteractionHandMethods in net.minecraft.client.player that return InteractionHandMethods in net.minecraft.client.player with parameters of type InteractionHandModifier and TypeMethodDescriptionvoid
LocalPlayer.openItemGui
(ItemStack pStack, InteractionHand pHand) void
LocalPlayer.startUsingItem
(InteractionHand pHand) void
LocalPlayer.swing
(InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type InteractionHandModifier and TypeMethodDescriptionvoid
ItemInHandRenderer.itemUsed
(InteractionHand pHand) ItemInHandRenderer.HandRenderSelection.onlyForHand
(InteractionHand pHand) private void
ItemInHandRenderer.renderArmWithItem
(AbstractClientPlayer pPlayer, float pPartialTicks, float pPitch, InteractionHand pHand, float pSwingProgress, ItemStack pStack, float pEquippedProgress, PoseStack pPoseStack, MultiBufferSource pBuffer, int pCombinedLight) -
Uses of InteractionHand in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player with parameters of type InteractionHandModifier and TypeMethodDescriptionprivate static HumanoidModel.ArmPose
PlayerRenderer.getArmPose
(AbstractClientPlayer pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic ItemInteractionResult
CauldronInteraction.emptyBucket
(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack, BlockState pState, SoundEvent pEmptySound) static ItemInteractionResult
CauldronInteraction.fillBucket
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) CauldronInteraction.interact
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) -
Uses of InteractionHand in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as InteractionHandModifier and TypeFieldDescriptionprivate final InteractionHand
ClientboundOpenBookPacket.hand
private final InteractionHand
ServerboundInteractPacket.InteractionAction.hand
private final InteractionHand
ServerboundInteractPacket.InteractionAtLocationAction.hand
private final InteractionHand
ServerboundSwingPacket.hand
private final InteractionHand
ServerboundUseItemOnPacket.hand
private final InteractionHand
ServerboundUseItemPacket.hand
Methods in net.minecraft.network.protocol.game that return InteractionHandModifier and TypeMethodDescriptionClientboundOpenBookPacket.getHand()
ServerboundSwingPacket.getHand()
ServerboundUseItemOnPacket.getHand()
ServerboundUseItemPacket.getHand()
Methods in net.minecraft.network.protocol.game with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand) static ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand, Vec3 pInteractionLocation) void
ServerboundInteractPacket.Handler.onInteraction
(InteractionHand pHand) void
ServerboundInteractPacket.Handler.onInteraction
(InteractionHand pHand, Vec3 pInteractionLocation) Constructors in net.minecraft.network.protocol.game with parameters of type InteractionHandModifierConstructorDescription(package private)
InteractionAction
(InteractionHand pHand) (package private)
InteractionAtLocationAction
(InteractionHand pHand, Vec3 pLocation) ServerboundUseItemOnPacket
(InteractionHand pHand, BlockHitResult pBlockHit, int pSequence) ServerboundUseItemPacket
(InteractionHand pHand, int pSequence, float pYRot, float pXRot) -
Uses of InteractionHand in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type InteractionHandModifier and TypeMethodDescriptionvoid
ServerPlayer.openItemGui
(ItemStack pStack, InteractionHand pHand) void
ServerPlayer.swing
(InteractionHand pHand) DemoMode.useItem
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) ServerPlayerGameMode.useItem
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) DemoMode.useItemOn
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) ServerPlayerGameMode.useItemOn
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionHand in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type InteractionHandModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer pPlayer, Entity pEntity, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world
Methods in net.minecraft.world that return InteractionHandModifier and TypeMethodDescriptionstatic InteractionHand
Returns the enum constant of this class with the specified name.static InteractionHand[]
InteractionHand.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of InteractionHand in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as InteractionHandMethods in net.minecraft.world.entity that return InteractionHandMethods in net.minecraft.world.entity with parameters of type InteractionHandModifier and TypeMethodDescriptionprivate InteractionResult
Mob.checkAndHandleImportantInteractions
(Player pPlayer, InteractionHand pHand) LivingEntity.getItemInHand
(InteractionHand pHand) static EquipmentSlot
LivingEntity.getSlotForHand
(InteractionHand pHand) Entity.interact
(Player pPlayer, InteractionHand pHand) Interaction.interact
(Player pPlayer, InteractionHand pHand) final InteractionResult
Mob.interact
(Player pPlayer, InteractionHand pHand) Entity.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.protected InteractionResult
Mob.mobInteract
(Player pPlayer, InteractionHand pHand) void
LivingEntity.setItemInHand
(InteractionHand pHand, ItemStack pStack) void
LivingEntity.startUsingItem
(InteractionHand pHand) void
LivingEntity.swing
(InteractionHand pHand) void
LivingEntity.swing
(InteractionHand pHand, boolean pUpdateSelf) -
Uses of InteractionHand in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player pPlayer, InteractionHand pHand, T pEntity) protected InteractionResult
AbstractFish.mobInteract
(Player pPlayer, InteractionHand pHand) Animal.mobInteract
(Player pPlayer, InteractionHand pHand) Cat.mobInteract
(Player pPlayer, InteractionHand pHand) Cow.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
Dolphin.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
IronGolem.mobInteract
(Player pPlayer, InteractionHand pHand) MushroomCow.mobInteract
(Player pPlayer, InteractionHand pHand) Ocelot.mobInteract
(Player pPlayer, InteractionHand pHand) Panda.mobInteract
(Player pPlayer, InteractionHand pHand) Parrot.mobInteract
(Player pPlayer, InteractionHand pHand) Pig.mobInteract
(Player pPlayer, InteractionHand pHand) Sheep.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
SnowGolem.mobInteract
(Player pPlayer, InteractionHand pHand) Wolf.mobInteract
(Player pPlayer, InteractionHand pHand) protected void
Animal.usePlayerItem
(Player pPlayer, InteractionHand pHand, ItemStack pStack) protected void
Cat.usePlayerItem
(Player pPlayer, InteractionHand pHand, ItemStack pStack) protected void
Fox.usePlayerItem
(Player pPlayer, InteractionHand pHand, ItemStack pStack) -
Uses of InteractionHand in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResult
Allay.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type InteractionHandModifier and TypeMethodDescriptionAxolotl.mobInteract
(Player pPlayer, InteractionHand pHand) protected void
Axolotl.usePlayerItem
(Player pPlayer, InteractionHand pHand, ItemStack pStack) -
Uses of InteractionHand in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractChestedHorse.mobInteract
(Player pPlayer, InteractionHand pHand) AbstractHorse.mobInteract
(Player pPlayer, InteractionHand pHand) Horse.mobInteract
(Player pPlayer, InteractionHand pHand) SkeletonHorse.mobInteract
(Player pPlayer, InteractionHand pHand) ZombieHorse.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration with parameters of type InteractionHandModifier and TypeMethodDescriptionItemFrame.interact
(Player pPlayer, InteractionHand pHand) LeashFenceKnotEntity.interact
(Player pPlayer, InteractionHand pHand) ArmorStand.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.private boolean
ArmorStand.swapItem
(Player pPlayer, EquipmentSlot pSlot, ItemStack pStack, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResult
Bogged.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
Creeper.mobInteract
(Player pPlayer, InteractionHand pHand) Strider.mobInteract
(Player pPlayer, InteractionHand pHand) ZombieVillager.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type InteractionHandModifier and TypeMethodDescriptionPiglin.mobInteract
(Player pPlayer, InteractionHand pHand) static InteractionResult
PiglinAi.mobInteract
(Piglin pPiglin, Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type InteractionHandModifier and TypeMethodDescriptionVillager.mobInteract
(Player pPlayer, InteractionHand pHand) WanderingTrader.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type InteractionHandModifier and TypeMethodDescriptionPlayer.interactOn
(Entity pEntityToInteractOn, InteractionHand pHand) void
Player.openItemGui
(ItemStack pStack, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return InteractionHandModifier and TypeMethodDescriptionstatic InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity pShooter, Item pWeapon) Deprecated. -
Uses of InteractionHand in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractMinecartContainer.interact
(Player pPlayer, InteractionHand pHand) Boat.interact
(Player pPlayer, InteractionHand pHand) ChestBoat.interact
(Player pPlayer, InteractionHand pHand) Minecart.interact
(Player pPlayer, InteractionHand pHand) MinecartChest.interact
(Player pPlayer, InteractionHand pHand) MinecartCommandBlock.interact
(Player pPlayer, InteractionHand pHand) MinecartFurnace.interact
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type InteractionHandModifier and TypeMethodDescriptionDyeItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.Item.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pInteractionTarget, InteractionHand pUsedHand) Try interacting with given entity.ItemStack.interactLivingEntity
(Player pPlayer, LivingEntity pEntity, InteractionHand pUsedHand) NameTagItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.SaddleItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)
to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)
void
CrossbowItem.performShooting
(Level pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, float pVelocity, float pInaccuracy, LivingEntity pTarget) protected void
ProjectileWeaponItem.shoot
(ServerLevel pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, List<ItemStack> pProjectileItems, float pVelocity, float pInaccuracy, boolean pIsCrit, LivingEntity pTarget) static InteractionResultHolder
<ItemStack> ItemUtils.startUsingInstantly
(Level pLevel, Player pPlayer, InteractionHand pHand) default InteractionResultHolder
<ItemStack> Equipable.swapWithEquipmentSlot
(Item pItem, Level pLevel, Player pPlayer, InteractionHand pHand) ArmorItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.BoatItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.BottleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.BowItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.BucketItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.BundleItem.use
(Level pLevel, Player pPlayer, InteractionHand pUsedHand) Called to trigger the item's "innate" right click behavior.CrossbowItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.EggItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.ElytraItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.EmptyMapItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.EnderEyeItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.EnderpearlItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.ExperienceBottleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.FireworkRocketItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.FishingRodItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.FoodOnAStickItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.HoneyBottleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.InstrumentItem.use
(Level pLevel, Player pPlayer, InteractionHand pUsedHand) Called to trigger the item's "innate" right click behavior.Item.use
(Level pLevel, Player pPlayer, InteractionHand pUsedHand) Called to trigger the item's "innate" right click behavior.ItemStack.use
(Level pLevel, Player pPlayer, InteractionHand pUsedHand) Called when theItemStack
is equipped and right-clicked.KnowledgeBookItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.LingeringPotionItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.MilkBucketItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.OminousBottleItem.use
(Level p_338229_, Player p_338350_, InteractionHand p_338729_) PlaceOnWaterBlockItem.use
(Level p_220231_, Player p_220232_, InteractionHand p_220233_) PotionItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.ShieldItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.SnowballItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.SpawnEggItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.SplashPotionItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.SpyglassItem.use
(Level pLevel, Player pPlayer, InteractionHand pUsedHand) Called to trigger the item's "innate" right click behavior.ThrowablePotionItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.TridentItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.WindChargeItem.use
(Level p_326306_, Player p_326042_, InteractionHand p_326470_) WritableBookItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior.WrittenBookItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Called to trigger the item's "innate" right click behavior. -
Uses of InteractionHand in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as InteractionHandMethods in net.minecraft.world.item.context that return InteractionHandConstructors in net.minecraft.world.item.context with parameters of type InteractionHandModifierConstructorDescriptionBlockPlaceContext
(Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) BlockPlaceContext
(Level pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) UseOnContext
(Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) UseOnContext
(Level pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) -
Uses of InteractionHand in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected ItemInteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
BeehiveBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CampfireBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CandleBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CandleCakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
ComposterBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResult
FenceBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
FlowerPotBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
JukeboxBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
LecternBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
NoteBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResult
RedStoneOreBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
SignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
TntBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResult
WallHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionHand in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type InteractionHandModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useItemOn
(ItemStack pStack, Level pLevel, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
BlockBehaviour.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionHand in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type InteractionHandModifier and TypeMethodDescriptionClientHooks.onClickInput
(int button, KeyMapping keyBinding, InteractionHand hand) static boolean
ClientHooks.renderSpecificFirstPersonHand
(InteractionHand hand, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick, float interpPitch, float swingProgress, float equipProgress, ItemStack stack) -
Uses of InteractionHand in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as InteractionHandModifier and TypeFieldDescriptionprivate final InteractionHand
InputEvent.InteractionKeyMappingTriggered.hand
private final InteractionHand
RenderHandEvent.hand
Methods in net.neoforged.neoforge.client.event that return InteractionHandModifier and TypeMethodDescriptionInputEvent.InteractionKeyMappingTriggered.getHand()
Returns the hand that caused the input.RenderHandEvent.getHand()
Returns the hand being rendered.Constructors in net.neoforged.neoforge.client.event with parameters of type InteractionHandModifierConstructorDescriptionInteractionKeyMappingTriggered
(int button, KeyMapping keyMapping, InteractionHand hand) RenderHandEvent
(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) -
Uses of InteractionHand in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type InteractionHandModifier and TypeMethodDescriptiondefault HumanoidModel.ArmPose
IClientItemExtensions.getArmPose
(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using theinvalid reference
net.minecraft.client.model.HumanoidModel.ArmPose#create(String, boolean, IArmPoseTransformer)
-
Uses of InteractionHand in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic void
CommonHooks.onEmptyClick
(Player player, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntity
(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onItemRightClick
(Player player, InteractionHand hand) static boolean
CommonHooks.onLivingUseTotem
(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) CommonHooks.onRightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) -
Uses of InteractionHand in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type InteractionHandModifier and TypeMethodDescriptiondefault boolean
IItemExtension.onEntitySwing
(ItemStack stack, LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default boolean
IItemStackExtension.onEntitySwing
(LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation. -
Uses of InteractionHand in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic InteractionResultHolder
<ItemStack> EventHooks.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static int
EventHooks.onItemUseStart
(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) static void
EventHooks.onPlayerDestroyItem
(Player player, ItemStack stack, @Nullable InteractionHand hand) -
Uses of InteractionHand in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as InteractionHandModifier and TypeFieldDescriptionprivate final InteractionHand
LivingEntityUseItemEvent.hand
private final InteractionHand
LivingUseTotemEvent.hand
Methods in net.neoforged.neoforge.event.entity.living that return InteractionHandModifier and TypeMethodDescriptionLivingEntityUseItemEvent.getHand()
Returns the hand the entity is using the item in.LivingUseTotemEvent.getHandHolding()
Returns the hand holding the totem.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type InteractionHandModifierConstructorDescriptionprivate
LivingEntityUseItemEvent
(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) LivingUseTotemEvent
(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) Start
(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) -
Uses of InteractionHand in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as InteractionHandModifier and TypeFieldDescriptionprivate final InteractionHand
ArrowNockEvent.hand
private final @Nullable InteractionHand
PlayerDestroyItemEvent.hand
private final InteractionHand
PlayerInteractEvent.hand
private final InteractionHand
UseItemOnBlockEvent.hand
Methods in net.neoforged.neoforge.event.entity.player that return InteractionHandModifier and TypeMethodDescriptionArrowNockEvent.getHand()
@Nullable InteractionHand
PlayerDestroyItemEvent.getHand()
PlayerInteractEvent.getHand()
UseItemOnBlockEvent.getHand()
Constructors in net.neoforged.neoforge.event.entity.player with parameters of type InteractionHandModifierConstructorDescriptionArrowNockEvent
(Player player, ItemStack item, InteractionHand hand, Level level, boolean hasAmmo) EntityInteract
(Player player, InteractionHand hand, Entity target) EntityInteractSpecific
(Player player, InteractionHand hand, Entity target, Vec3 localPos) PlayerDestroyItemEvent
(Player player, ItemStack original, @Nullable InteractionHand hand) protected
PlayerInteractEvent
(Player player, InteractionHand hand, BlockPos pos, @Nullable Direction face) RightClickBlock
(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) RightClickEmpty
(Player player, InteractionHand hand) RightClickItem
(Player player, InteractionHand hand) -
Uses of InteractionHand in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, Level level, BlockPos pos, @Nullable Direction side) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.static boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, IFluidHandler handler) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.static FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) static boolean
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Tries to place a fluid resource into the level as a block and drains the fluidSource. -
Uses of InteractionHand in net.neoforged.neoforge.oldtest.block
Methods in net.neoforged.neoforge.oldtest.block with parameters of type InteractionHandModifier and TypeMethodDescriptionFullPotsAccessorDemo.DioriteFlowerPotBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of InteractionHand in net.neoforged.neoforge.oldtest.client
Methods in net.neoforged.neoforge.oldtest.client with parameters of type InteractionHandModifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.use
(Level level, Player player, InteractionHand hand) -
Uses of InteractionHand in net.neoforged.neoforge.oldtest.client.model
Methods in net.neoforged.neoforge.oldtest.client.model with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected ItemInteractionResult
MegaModelTest.TestBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of InteractionHand in net.neoforged.neoforge.oldtest.item
Methods in net.neoforged.neoforge.oldtest.item with parameters of type InteractionHandModifier and TypeMethodDescriptionCustomFluidContainerTest.CustomFluidContainer.use
(Level level, Player player, InteractionHand hand) CustomShieldTest.CustomShieldItem.use
(Level world, Player player, InteractionHand hand) StopUsingItemTest.InvertedTelescope.use
(Level level, Player player, InteractionHand hand)