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, WritableBookContent pContent) -
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
(Player pPlayer, ItemStack pStack, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as InteractionHand -
Uses of InteractionHand in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type InteractionHandModifier and TypeMethodDescriptionprivate static InteractionResult
CauldronInteraction.bannerInteraction
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) private static InteractionResult
CauldronInteraction.dyedItemIteration
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) static InteractionResult
CauldronInteraction.emptyBucket
(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStackl, BlockState pState, SoundEvent pEmptySound) static InteractionResult
CauldronInteraction.fillBucket
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) private static InteractionResult
CauldronInteraction.fillLavaInteraction
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack) private static InteractionResult
CauldronInteraction.fillPowderSnowInteraction
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack) private static InteractionResult
CauldronInteraction.fillWaterInteraction
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack) CauldronInteraction.interact
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) private static InteractionResult
CauldronInteraction.shulkerBoxInteraction
(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 p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) 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 p_273507_, InteractionHand p_273048_) 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) AbstractCow.mobInteract
(Player p_401345_, InteractionHand p_401405_) protected InteractionResult
AbstractFish.mobInteract
(Player pPlayer, InteractionHand pHand) Animal.mobInteract
(Player pPlayer, InteractionHand pHand) Bee.mobInteract
(Player p_383058_, InteractionHand p_383220_) Cat.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) protected InteractionResult
SnowGolem.mobInteract
(Player pPlayer, InteractionHand pHand) protected void
Animal.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 p_218361_, InteractionHand p_218362_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type InteractionHandModifier and TypeMethodDescriptionArmadillo.mobInteract
(Player p_316559_, InteractionHand p_316119_) -
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 p_149155_, InteractionHand p_149156_) protected void
Axolotl.usePlayerItem
(Player p_149124_, InteractionHand p_149125_, ItemStack p_149126_) -
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 InteractionHandModifier and TypeMethodDescriptionTadpole.mobInteract
(Player p_218703_, InteractionHand p_218704_) -
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 p_252289_, InteractionHand p_248927_) 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.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer with parameters of type InteractionHandModifier and TypeMethodDescriptionSniffer.mobInteract
(Player p_273046_, InteractionHand p_272687_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf 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 p_330736_, InteractionHand p_331786_) 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
(ServerLevel pLevel, 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 TypeMethodDescriptionAbstractBoat.interact
(Player p_376241_, InteractionHand p_376920_) AbstractChestBoat.interact
(Player p_376860_, InteractionHand p_376424_) AbstractMinecartContainer.interact
(Player pPlayer, InteractionHand pHand) Minecart.interact
(Player pPlayer, InteractionHand pHand) MinecartChest.interact
(Player p_270398_, InteractionHand p_270576_) 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.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 InteractionResult
ItemUtils.startUsingInstantly
(Level pLevel, Player pPlayer, InteractionHand pHand) BoatItem.use
(Level p_40622_, Player p_40623_, InteractionHand p_40624_) BottleItem.use
(Level p_40656_, Player p_40657_, InteractionHand p_40658_) BowItem.use
(Level p_40672_, Player p_40673_, InteractionHand p_40674_) BucketItem.use
(Level p_40703_, Player p_40704_, InteractionHand p_40705_) BundleItem.use
(Level p_150760_, Player p_150761_, InteractionHand p_150762_) CrossbowItem.use
(Level p_40920_, Player p_40921_, InteractionHand p_40922_) EggItem.use
(Level p_41128_, Player p_41129_, InteractionHand p_41130_) EmptyMapItem.use
(Level p_41145_, Player p_41146_, InteractionHand p_41147_) EnderEyeItem.use
(Level p_41184_, Player p_41185_, InteractionHand p_41186_) EnderpearlItem.use
(Level p_41190_, Player p_41191_, InteractionHand p_41192_) ExperienceBottleItem.use
(Level p_41196_, Player p_41197_, InteractionHand p_41198_) FireworkRocketItem.use
(Level p_41218_, Player p_41219_, InteractionHand p_41220_) FishingRodItem.use
(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use
(Level p_41314_, Player p_41315_, InteractionHand p_41316_) InstrumentItem.use
(Level p_220123_, Player p_220124_, InteractionHand p_220125_) Item.use
(Level pLevel, Player pPlayer, InteractionHand pHand) ItemStack.use
(Level pLevel, Player pPlayer, InteractionHand pHand) KnowledgeBookItem.use
(Level p_42824_, Player p_42825_, InteractionHand p_42826_) LingeringPotionItem.use
(Level p_42843_, Player p_42844_, InteractionHand p_42845_) PlaceOnWaterBlockItem.use
(Level p_220231_, Player p_220232_, InteractionHand p_220233_) SnowballItem.use
(Level p_43142_, Player p_43143_, InteractionHand p_43144_) SpawnEggItem.use
(Level p_43225_, Player p_43226_, InteractionHand p_43227_) SplashPotionItem.use
(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use
(Level p_151218_, Player p_151219_, InteractionHand p_151220_) ThrowablePotionItem.use
(Level p_43303_, Player p_43304_, InteractionHand p_43305_) TridentItem.use
(Level p_43405_, Player p_43406_, InteractionHand p_43407_) WindChargeItem.use
(Level p_326306_, Player p_326042_, InteractionHand p_326470_) WritableBookItem.use
(Level p_43449_, Player p_43450_, InteractionHand p_43451_) WrittenBookItem.use
(Level p_43468_, Player p_43469_, InteractionHand p_43470_) -
Uses of InteractionHand in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type InteractionHandModifier and TypeMethodDescriptionvoid
BlocksAttacks.hurtBlockingItem
(Level pLevel, ItemStack pStack, LivingEntity pEntity, InteractionHand pHand, float pDamage) void
BlocksAttacks.hurtBlockingItem
(Level pLevel, ItemStack pStack, LivingEntity pEntity, InteractionHand pHand, float pDamage, int fixedDamage) Consumable.startConsuming
(LivingEntity pEntity, ItemStack pStack, InteractionHand pHand) -
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 p_43638_, Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) 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 InteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack p_316791_, BlockState p_316287_, Level p_316530_, BlockPos p_316585_, Player p_316671_, InteractionHand p_316186_, BlockHitResult p_316294_) protected InteractionResult
BeehiveBlock.useItemOn
(ItemStack p_316844_, BlockState p_316365_, Level p_316306_, BlockPos p_316497_, Player p_316824_, InteractionHand p_316436_, BlockHitResult p_316125_) protected InteractionResult
CakeBlock.useItemOn
(ItemStack p_316238_, BlockState p_316837_, Level p_316766_, BlockPos p_316227_, Player p_316853_, InteractionHand p_316422_, BlockHitResult p_316869_) protected InteractionResult
CampfireBlock.useItemOn
(ItemStack p_316347_, BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) protected InteractionResult
CandleBlock.useItemOn
(ItemStack p_316279_, BlockState p_316163_, Level p_316881_, BlockPos p_316480_, Player p_316191_, InteractionHand p_316669_, BlockHitResult p_316641_) protected InteractionResult
CandleCakeBlock.useItemOn
(ItemStack p_316571_, BlockState p_316514_, Level p_316171_, BlockPos p_316112_, Player p_316172_, InteractionHand p_316257_, BlockHitResult p_316286_) protected InteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack p_316602_, BlockState p_316839_, Level p_316805_, BlockPos p_316894_, Player p_316202_, InteractionHand p_316538_, BlockHitResult p_316895_) protected InteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack p_316457_, BlockState p_316201_, Level p_316747_, BlockPos p_316462_, Player p_316228_, InteractionHand p_316721_, BlockHitResult p_316464_) protected InteractionResult
ComposterBlock.useItemOn
(ItemStack p_316332_, BlockState p_316118_, Level p_316624_, BlockPos p_316660_, Player p_316715_, InteractionHand p_316472_, BlockHitResult p_316606_) protected InteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResult
FlowerPotBlock.useItemOn
(ItemStack p_316610_, BlockState p_316240_, Level p_316456_, BlockPos p_316502_, Player p_316491_, InteractionHand p_316444_, BlockHitResult p_316826_) protected InteractionResult
JukeboxBlock.useItemOn
(ItemStack p_350348_, BlockState p_351033_, Level p_350995_, BlockPos p_350838_, Player p_350684_, InteractionHand p_350461_, BlockHitResult p_351025_) protected InteractionResult
LecternBlock.useItemOn
(ItemStack p_316392_, BlockState p_316600_, Level p_316640_, BlockPos p_316673_, Player p_316670_, InteractionHand p_316384_, BlockHitResult p_316419_) protected InteractionResult
NoteBlock.useItemOn
(ItemStack p_316716_, BlockState p_316688_, Level p_316672_, BlockPos p_316355_, Player p_316822_, InteractionHand p_316505_, BlockHitResult p_316667_) protected InteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResult
RedStoneOreBlock.useItemOn
(ItemStack p_316235_, BlockState p_316208_, Level p_316432_, BlockPos p_316592_, Player p_316564_, InteractionHand p_316389_, BlockHitResult p_316390_) protected InteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack p_316531_, BlockState p_316665_, Level p_316165_, BlockPos p_316402_, Player p_316556_, InteractionHand p_316586_, BlockHitResult p_316326_) protected InteractionResult
SignBlock.useItemOn
(ItemStack p_316116_, BlockState p_316899_, Level p_316692_, BlockPos p_316578_, Player p_316244_, InteractionHand p_316196_, BlockHitResult p_316744_) protected InteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack p_316636_, BlockState p_316295_, Level p_316812_, BlockPos p_316380_, Player p_316731_, InteractionHand p_316188_, BlockHitResult p_316626_) protected InteractionResult
TntBlock.useItemOn
(ItemStack p_316149_, BlockState p_316217_, Level p_316520_, BlockPos p_316601_, Player p_316770_, InteractionHand p_316393_, BlockHitResult p_316532_) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResult
WallHangingSignBlock.useItemOn
(ItemStack p_316420_, BlockState p_316885_, Level p_316114_, BlockPos p_316297_, Player p_316609_, InteractionHand p_316187_, BlockHitResult p_316223_) -
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 InteractionResult
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 InteractionResult
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.