Uses of Enum Class
net.minecraft.world.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
ModifierConstructorDescriptionBookEditScreen
(Player p_98076_, ItemStack p_98077_, InteractionHand p_98078_) -
Uses of InteractionHand in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionMultiPlayerGameMode.interact
(Player p_105227_, Entity p_105228_, InteractionHand p_105229_) MultiPlayerGameMode.interactAt
(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) private InteractionResult
MultiPlayerGameMode.performUseItemOn
(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_) MultiPlayerGameMode.useItem
(Player p_233722_, InteractionHand p_233723_) MultiPlayerGameMode.useItemOn
(LocalPlayer p_233733_, InteractionHand p_233734_, BlockHitResult p_233735_) -
Uses of InteractionHand in net.minecraft.client.player
Modifier and TypeMethodDescriptionvoid
LocalPlayer.openItemGui
(ItemStack p_108673_, InteractionHand p_108674_) void
LocalPlayer.startUsingItem
(InteractionHand p_108718_) void
LocalPlayer.swing
(InteractionHand p_108660_) -
Uses of InteractionHand in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionvoid
ItemInHandRenderer.itemUsed
(InteractionHand p_109321_) ItemInHandRenderer.HandRenderSelection.onlyForHand
(InteractionHand p_172932_) private void
ItemInHandRenderer.renderArmWithItem
(AbstractClientPlayer p_109372_, float p_109373_, float p_109374_, InteractionHand p_109375_, float p_109376_, ItemStack p_109377_, float p_109378_, PoseStack p_109379_, MultiBufferSource p_109380_, int p_109381_) -
Uses of InteractionHand in net.minecraft.client.renderer.entity.player
Modifier and TypeMethodDescriptionprivate static HumanoidModel.ArmPose
PlayerRenderer.getArmPose
(AbstractClientPlayer p_117795_, InteractionHand p_117796_) -
Uses of InteractionHand in net.minecraft.core.cauldron
Modifier and TypeMethodDescriptionstatic ItemInteractionResult
CauldronInteraction.emptyBucket
(Level p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) static ItemInteractionResult
CauldronInteraction.fillBucket
(BlockState p_175636_, Level p_175637_, BlockPos p_175638_, Player p_175639_, InteractionHand p_175640_, ItemStack p_175641_, ItemStack p_175642_, Predicate<BlockState> p_175643_, SoundEvent p_175644_) CauldronInteraction.interact
(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) -
Uses of InteractionHand in net.minecraft.network.protocol.game
Modifier 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
Modifier and TypeMethodDescriptionClientboundOpenBookPacket.getHand()
ServerboundSwingPacket.getHand()
ServerboundUseItemOnPacket.getHand()
ServerboundUseItemPacket.getHand()
Modifier and TypeMethodDescriptionstatic ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity p_179609_, boolean p_179610_, InteractionHand p_179611_) static ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) void
ServerboundInteractPacket.Handler.onInteraction
(InteractionHand p_179643_) void
ServerboundInteractPacket.Handler.onInteraction
(InteractionHand p_179644_, Vec3 p_179645_) ModifierConstructorDescriptionClientboundOpenBookPacket
(InteractionHand p_132601_) (package private)
InteractionAction
(InteractionHand p_179648_) (package private)
InteractionAtLocationAction
(InteractionHand p_179659_, Vec3 p_179660_) ServerboundSwingPacket
(InteractionHand p_134667_) ServerboundUseItemOnPacket
(InteractionHand p_238005_, BlockHitResult p_238006_, int p_238007_) ServerboundUseItemPacket
(InteractionHand p_238011_, int p_238012_) -
Uses of InteractionHand in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerPlayer.openItemGui
(ItemStack p_9082_, InteractionHand p_9083_) void
ServerPlayer.swing
(InteractionHand p_9031_) DemoMode.useItem
(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) ServerPlayerGameMode.useItem
(ServerPlayer p_9262_, Level p_9263_, ItemStack p_9264_, InteractionHand p_9265_) DemoMode.useItemOn
(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) ServerPlayerGameMode.useItemOn
(ServerPlayer p_9266_, Level p_9267_, ItemStack p_9268_, InteractionHand p_9269_, BlockHitResult p_9270_) -
Uses of InteractionHand in net.minecraft.server.network
Modifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer p_143695_, Entity p_143696_, InteractionHand p_143697_) -
Uses of InteractionHand in net.minecraft.world
Modifier 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
Modifier and TypeMethodDescriptionprivate InteractionResult
Mob.checkAndHandleImportantInteractions
(Player p_21500_, InteractionHand p_21501_) LivingEntity.getItemInHand
(InteractionHand p_21121_) static EquipmentSlot
LivingEntity.getSlotForHand
(InteractionHand p_320526_) Entity.interact
(Player p_19978_, InteractionHand p_19979_) Interaction.interact
(Player p_273507_, InteractionHand p_273048_) final InteractionResult
Mob.interact
(Player p_21420_, InteractionHand p_21421_) Entity.interactAt
(Player p_19980_, Vec3 p_19981_, InteractionHand p_19982_) protected InteractionResult
Mob.mobInteract
(Player p_21472_, InteractionHand p_21473_) void
LivingEntity.setItemInHand
(InteractionHand p_21009_, ItemStack p_21010_) void
LivingEntity.startUsingItem
(InteractionHand p_21159_) void
LivingEntity.swing
(InteractionHand p_21007_) void
LivingEntity.swing
(InteractionHand p_21012_, boolean p_21013_) -
Uses of InteractionHand in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player p_148829_, InteractionHand p_148830_, T p_148831_) protected InteractionResult
AbstractFish.mobInteract
(Player p_27477_, InteractionHand p_27478_) Animal.mobInteract
(Player p_27584_, InteractionHand p_27585_) Cat.mobInteract
(Player p_28153_, InteractionHand p_28154_) Cow.mobInteract
(Player p_28298_, InteractionHand p_28299_) protected InteractionResult
Dolphin.mobInteract
(Player p_28359_, InteractionHand p_28360_) protected InteractionResult
IronGolem.mobInteract
(Player p_28861_, InteractionHand p_28862_) MushroomCow.mobInteract
(Player p_28941_, InteractionHand p_28942_) Ocelot.mobInteract
(Player p_29021_, InteractionHand p_29022_) Panda.mobInteract
(Player p_29123_, InteractionHand p_29124_) Parrot.mobInteract
(Player p_29414_, InteractionHand p_29415_) Pig.mobInteract
(Player p_29489_, InteractionHand p_29490_) Sheep.mobInteract
(Player p_29853_, InteractionHand p_29854_) protected InteractionResult
SnowGolem.mobInteract
(Player p_29920_, InteractionHand p_29921_) Wolf.mobInteract
(Player p_30412_, InteractionHand p_30413_) protected void
Animal.usePlayerItem
(Player p_148715_, InteractionHand p_148716_, ItemStack p_148717_) protected void
Cat.usePlayerItem
(Player p_148866_, InteractionHand p_148867_, ItemStack p_148868_) protected void
Fox.usePlayerItem
(Player p_148908_, InteractionHand p_148909_, ItemStack p_148910_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionprotected InteractionResult
Allay.mobInteract
(Player p_218361_, InteractionHand p_218362_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.armadillo
Modifier and TypeMethodDescriptionArmadillo.mobInteract
(Player p_316559_, InteractionHand p_316119_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.axolotl
Modifier 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
-
Uses of InteractionHand in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionTadpole.mobInteract
(Player p_218703_, InteractionHand p_218704_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.goat
-
Uses of InteractionHand in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionAbstractChestedHorse.mobInteract
(Player p_30493_, InteractionHand p_30494_) AbstractHorse.mobInteract
(Player p_252289_, InteractionHand p_248927_) Horse.mobInteract
(Player p_30713_, InteractionHand p_30714_) SkeletonHorse.mobInteract
(Player p_30904_, InteractionHand p_30905_) ZombieHorse.mobInteract
(Player p_31001_, InteractionHand p_31002_) -
Uses of InteractionHand in net.minecraft.world.entity.animal.sniffer
Modifier and TypeMethodDescriptionSniffer.mobInteract
(Player p_273046_, InteractionHand p_272687_) -
Uses of InteractionHand in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionItemFrame.interact
(Player p_31787_, InteractionHand p_31788_) LeashFenceKnotEntity.interact
(Player p_31842_, InteractionHand p_31843_) ArmorStand.interactAt
(Player p_31594_, Vec3 p_31595_, InteractionHand p_31596_) private boolean
ArmorStand.swapItem
(Player p_31589_, EquipmentSlot p_31590_, ItemStack p_31591_, InteractionHand p_31592_) -
Uses of InteractionHand in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionprotected InteractionResult
Bogged.mobInteract
(Player p_330736_, InteractionHand p_331786_) protected InteractionResult
Creeper.mobInteract
(Player p_32301_, InteractionHand p_32302_) Strider.mobInteract
(Player p_33910_, InteractionHand p_33911_) ZombieVillager.mobInteract
(Player p_34394_, InteractionHand p_34395_) -
Uses of InteractionHand in net.minecraft.world.entity.monster.hoglin
-
Uses of InteractionHand in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionPiglin.mobInteract
(Player p_34745_, InteractionHand p_34746_) static InteractionResult
PiglinAi.mobInteract
(Piglin p_34847_, Player p_34848_, InteractionHand p_34849_) -
Uses of InteractionHand in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionVillager.mobInteract
(Player p_35472_, InteractionHand p_35473_) WanderingTrader.mobInteract
(Player p_35856_, InteractionHand p_35857_) -
Uses of InteractionHand in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionPlayer.interactOn
(Entity p_36158_, InteractionHand p_36159_) void
Player.openItemGui
(ItemStack p_36174_, InteractionHand p_36175_) -
Uses of InteractionHand in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionstatic InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHand
ProjectileUtil.getWeaponHoldingHand
(LivingEntity p_37298_, Item p_37299_) Deprecated. -
Uses of InteractionHand in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionAbstractMinecartContainer.interact
(Player p_38232_, InteractionHand p_38233_) Boat.interact
(Player p_38330_, InteractionHand p_38331_) ChestBoat.interact
(Player p_219898_, InteractionHand p_219899_) Minecart.interact
(Player p_38483_, InteractionHand p_38484_) MinecartChest.interact
(Player p_270398_, InteractionHand p_270576_) MinecartCommandBlock.interact
(Player p_38522_, InteractionHand p_38523_) MinecartFurnace.interact
(Player p_38562_, InteractionHand p_38563_) -
Uses of InteractionHand in net.minecraft.world.item
Modifier and TypeMethodDescriptionDyeItem.interactLivingEntity
(ItemStack p_41085_, Player p_41086_, LivingEntity p_41087_, InteractionHand p_41088_) Item.interactLivingEntity
(ItemStack p_41398_, Player p_41399_, LivingEntity p_41400_, InteractionHand p_41401_) ItemStack.interactLivingEntity
(Player p_41648_, LivingEntity p_41649_, InteractionHand p_41650_) NameTagItem.interactLivingEntity
(ItemStack p_42954_, Player p_42955_, LivingEntity p_42956_, InteractionHand p_42957_) SaddleItem.interactLivingEntity
(ItemStack p_43055_, Player p_43056_, LivingEntity p_43057_, InteractionHand p_43058_) ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) void
CrossbowItem.performShooting
(Level p_40888_, LivingEntity p_40889_, InteractionHand p_40890_, ItemStack p_40891_, float p_40892_, float p_40893_, LivingEntity p_331602_) protected void
ProjectileWeaponItem.shoot
(Level p_331270_, LivingEntity p_330728_, InteractionHand p_331152_, ItemStack p_330646_, List<ItemStack> p_331726_, float p_331007_, float p_331445_, boolean p_331107_, LivingEntity p_331167_) static InteractionResultHolder
<ItemStack> ItemUtils.startUsingInstantly
(Level p_150960_, Player p_150961_, InteractionHand p_150962_) default InteractionResultHolder
<ItemStack> Equipable.swapWithEquipmentSlot
(Item p_270453_, Level p_270395_, Player p_270300_, InteractionHand p_270262_) ArmorItem.use
(Level p_40395_, Player p_40396_, InteractionHand p_40397_) 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_) ElytraItem.use
(Level p_41137_, Player p_41138_, InteractionHand p_41139_) 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_) HoneyBottleItem.use
(Level p_41352_, Player p_41353_, InteractionHand p_41354_) InstrumentItem.use
(Level p_220123_, Player p_220124_, InteractionHand p_220125_) Item.use
(Level p_41432_, Player p_41433_, InteractionHand p_41434_) ItemStack.use
(Level p_41683_, Player p_41684_, InteractionHand p_41685_) KnowledgeBookItem.use
(Level p_42824_, Player p_42825_, InteractionHand p_42826_) LingeringPotionItem.use
(Level p_42843_, Player p_42844_, InteractionHand p_42845_) MilkBucketItem.use
(Level p_42927_, Player p_42928_, InteractionHand p_42929_) 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 p_42993_, Player p_42994_, InteractionHand p_42995_) ShieldItem.use
(Level p_43099_, Player p_43100_, InteractionHand p_43101_) 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.context
ModifierConstructorDescriptionBlockPlaceContext
(Player p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) BlockPlaceContext
(Level p_43638_, Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) UseOnContext
(Player p_43709_, InteractionHand p_43710_, BlockHitResult p_43711_) UseOnContext
(Level p_43713_, Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_) -
Uses of InteractionHand in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionprotected ItemInteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack p_316791_, BlockState p_316287_, Level p_316530_, BlockPos p_316585_, Player p_316671_, InteractionHand p_316186_, BlockHitResult p_316294_) protected ItemInteractionResult
BeehiveBlock.useItemOn
(ItemStack p_316844_, BlockState p_316365_, Level p_316306_, BlockPos p_316497_, Player p_316824_, InteractionHand p_316436_, BlockHitResult p_316125_) protected ItemInteractionResult
CakeBlock.useItemOn
(ItemStack p_316238_, BlockState p_316837_, Level p_316766_, BlockPos p_316227_, Player p_316853_, InteractionHand p_316422_, BlockHitResult p_316869_) protected ItemInteractionResult
CampfireBlock.useItemOn
(ItemStack p_316347_, BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) protected ItemInteractionResult
CandleBlock.useItemOn
(ItemStack p_316279_, BlockState p_316163_, Level p_316881_, BlockPos p_316480_, Player p_316191_, InteractionHand p_316669_, BlockHitResult p_316641_) protected ItemInteractionResult
CandleCakeBlock.useItemOn
(ItemStack p_316571_, BlockState p_316514_, Level p_316171_, BlockPos p_316112_, Player p_316172_, InteractionHand p_316257_, BlockHitResult p_316286_) protected ItemInteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack p_316602_, BlockState p_316839_, Level p_316805_, BlockPos p_316894_, Player p_316202_, InteractionHand p_316538_, BlockHitResult p_316895_) protected ItemInteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack p_316457_, BlockState p_316201_, Level p_316747_, BlockPos p_316462_, Player p_316228_, InteractionHand p_316721_, BlockHitResult p_316464_) protected ItemInteractionResult
ComposterBlock.useItemOn
(ItemStack p_316332_, BlockState p_316118_, Level p_316624_, BlockPos p_316660_, Player p_316715_, InteractionHand p_316472_, BlockHitResult p_316606_) 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 p_316871_, BlockState p_316305_, Level p_316763_, BlockPos p_316504_, Player p_316364_, InteractionHand p_316507_, BlockHitResult p_316760_) protected ItemInteractionResult
FlowerPotBlock.useItemOn
(ItemStack p_316610_, BlockState p_316240_, Level p_316456_, BlockPos p_316502_, Player p_316491_, InteractionHand p_316444_, BlockHitResult p_316826_) protected ItemInteractionResult
LecternBlock.useItemOn
(ItemStack p_316392_, BlockState p_316600_, Level p_316640_, BlockPos p_316673_, Player p_316670_, InteractionHand p_316384_, BlockHitResult p_316419_) protected ItemInteractionResult
NoteBlock.useItemOn
(ItemStack p_316716_, BlockState p_316688_, Level p_316672_, BlockPos p_316355_, Player p_316822_, InteractionHand p_316505_, BlockHitResult p_316667_) 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 p_316235_, BlockState p_316208_, Level p_316432_, BlockPos p_316592_, Player p_316564_, InteractionHand p_316389_, BlockHitResult p_316390_) protected ItemInteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack p_316531_, BlockState p_316665_, Level p_316165_, BlockPos p_316402_, Player p_316556_, InteractionHand p_316586_, BlockHitResult p_316326_) protected ItemInteractionResult
SignBlock.useItemOn
(ItemStack p_316116_, BlockState p_316899_, Level p_316692_, BlockPos p_316578_, Player p_316244_, InteractionHand p_316196_, BlockHitResult p_316744_) protected ItemInteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack p_316636_, BlockState p_316295_, Level p_316812_, BlockPos p_316380_, Player p_316731_, InteractionHand p_316188_, BlockHitResult p_316626_) protected ItemInteractionResult
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 ItemInteractionResult
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
Modifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useItemOn
(ItemStack p_316374_, Level p_316651_, Player p_316623_, InteractionHand p_316469_, BlockHitResult p_316877_) protected ItemInteractionResult
BlockBehaviour.useItemOn
(ItemStack p_316304_, BlockState p_316362_, Level p_316459_, BlockPos p_316366_, Player p_316132_, InteractionHand p_316595_, BlockHitResult p_316140_) -
Uses of InteractionHand in net.neoforged.neoforge.client
Modifier 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
Modifier and TypeFieldDescriptionprivate final InteractionHand
InputEvent.InteractionKeyMappingTriggered.hand
private final InteractionHand
RenderHandEvent.hand
Modifier and TypeMethodDescriptionInputEvent.InteractionKeyMappingTriggered.getHand()
Returns the hand that caused the input.RenderHandEvent.getHand()
Returns the hand being rendered.ModifierConstructorDescriptionInteractionKeyMappingTriggered
(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
Modifier and TypeMethodDescriptiondefault HumanoidModel.ArmPose
IClientItemExtensions.getArmPose
(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using theHumanoidModel.ArmPose.create(String, boolean, IArmPoseTransformer)
method. -
Uses of InteractionHand in net.neoforged.neoforge.common
Modifier 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.event
Modifier and TypeMethodDescriptionstatic InteractionResultHolder
<ItemStack> EventHooks.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static void
EventHooks.onPlayerDestroyItem
(Player player, ItemStack stack, @Nullable InteractionHand hand) -
Uses of InteractionHand in net.neoforged.neoforge.event.entity.living
Modifier and TypeMethodDescriptionLivingUseTotemEvent.getHandHolding()
Returns the hand holding the totem.ModifierConstructorDescriptionLivingUseTotemEvent
(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) -
Uses of InteractionHand in net.neoforged.neoforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final InteractionHand
ArrowNockEvent.hand
private final @Nullable InteractionHand
PlayerDestroyItemEvent.hand
private final InteractionHand
PlayerInteractEvent.hand
Modifier and TypeMethodDescriptionArrowNockEvent.getHand()
@Nullable InteractionHand
PlayerDestroyItemEvent.getHand()
PlayerInteractEvent.getHand()
ModifierConstructorDescriptionArrowNockEvent
(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
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.use
(Level level, Player player, InteractionHand hand) -
Uses of InteractionHand in net.neoforged.neoforge.oldtest.client.model
Modifier 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
Modifier 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)