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 InteractionHand -
Uses of InteractionHand in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type InteractionHandModifier and TypeMethodDescriptionMultiPlayerGameMode.interact(Player player, Entity target, InteractionHand hand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt(Player player, Entity target, EntityHitResult ray, InteractionHand hand) Handles right-clicking an entity from the entities side, sends a packet to the server.private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult p_result) MultiPlayerGameMode.useItem(Player player, InteractionHand hand) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult result) -
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 TypeMethodDescriptionvoidLocalPlayer.openItemGui(ItemStack stack, InteractionHand hand) voidLocalPlayer.startUsingItem(InteractionHand hand) voidLocalPlayer.swing(InteractionHand hand) -
Uses of InteractionHand in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type InteractionHandModifier and TypeMethodDescriptionvoidItemInHandRenderer.itemUsed(InteractionHand hand) ItemInHandRenderer.HandRenderSelection.onlyForHand(InteractionHand hand) private voidItemInHandRenderer.renderArmWithItem(AbstractClientPlayer player, float partialTicks, float pitch, InteractionHand hand, float swingProgress, ItemStack stack, float equippedProgress, PoseStack poseStack, MultiBufferSource buffer, int combinedLight) -
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.ArmPosePlayerRenderer.getArmPose(AbstractClientPlayer player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic ItemInteractionResultCauldronInteraction.emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static ItemInteractionResultCauldronInteraction.fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) CauldronInteraction.interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
Uses of InteractionHand in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as InteractionHandModifier and TypeFieldDescriptionprivate final InteractionHandClientboundOpenBookPacket.handprivate final InteractionHandServerboundInteractPacket.InteractionAction.handprivate final InteractionHandServerboundInteractPacket.InteractionAtLocationAction.handprivate final InteractionHandServerboundSwingPacket.handprivate final InteractionHandServerboundUseItemOnPacket.handprivate final InteractionHandServerboundUseItemPacket.handMethods 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 ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity entity, boolean usingSecondaryAction, InteractionHand hand) static ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity entity, boolean usingSecondaryAction, InteractionHand hand, Vec3 interactionLocation) voidServerboundInteractPacket.Handler.onInteraction(InteractionHand hand) voidServerboundInteractPacket.Handler.onInteraction(InteractionHand hand, Vec3 interactionLocation) Constructors in net.minecraft.network.protocol.game with parameters of type InteractionHandModifierConstructorDescription(package private)(package private)InteractionAtLocationAction(InteractionHand hand, Vec3 location) ServerboundUseItemOnPacket(InteractionHand hand, BlockHitResult blockHit, int sequence) ServerboundUseItemPacket(InteractionHand hand, int sequence, float yRot, float xRot) -
Uses of InteractionHand in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type InteractionHandModifier and TypeMethodDescriptionvoidServerPlayer.openItemGui(ItemStack stack, InteractionHand hand) voidServerPlayer.swing(InteractionHand hand) DemoMode.useItem(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand) ServerPlayerGameMode.useItem(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand) DemoMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) -
Uses of InteractionHand in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type InteractionHandModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run(ServerPlayer player, Entity entity, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world
Methods in net.minecraft.world that return InteractionHandModifier and TypeMethodDescriptionstatic InteractionHandReturns 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 InteractionResultMob.checkAndHandleImportantInteractions(Player player, InteractionHand hand) LivingEntity.getItemInHand(InteractionHand hand) static EquipmentSlotLivingEntity.getSlotForHand(InteractionHand hand) Entity.interact(Player player, InteractionHand hand) Interaction.interact(Player player, InteractionHand hand) final InteractionResultMob.interact(Player player, InteractionHand hand) Entity.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.protected InteractionResultMob.mobInteract(Player player, InteractionHand hand) voidLivingEntity.setItemInHand(InteractionHand hand, ItemStack stack) voidLivingEntity.startUsingItem(InteractionHand hand) voidLivingEntity.swing(InteractionHand hand) voidLivingEntity.swing(InteractionHand hand, boolean updateSelf) -
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 player, InteractionHand hand, T entity) protected InteractionResultAbstractFish.mobInteract(Player player, InteractionHand hand) Animal.mobInteract(Player player, InteractionHand hand) Cat.mobInteract(Player player, InteractionHand hand) Cow.mobInteract(Player player, InteractionHand hand) protected InteractionResultDolphin.mobInteract(Player player, InteractionHand hand) protected InteractionResultIronGolem.mobInteract(Player player, InteractionHand hand) MushroomCow.mobInteract(Player player, InteractionHand hand) Ocelot.mobInteract(Player player, InteractionHand hand) Panda.mobInteract(Player player, InteractionHand hand) Parrot.mobInteract(Player player, InteractionHand hand) Pig.mobInteract(Player player, InteractionHand hand) Sheep.mobInteract(Player player, InteractionHand hand) protected InteractionResultSnowGolem.mobInteract(Player player, InteractionHand hand) Wolf.mobInteract(Player player, InteractionHand hand) protected voidAnimal.usePlayerItem(Player player, InteractionHand hand, ItemStack stack) protected voidCat.usePlayerItem(Player player, InteractionHand hand, ItemStack stack) protected voidFox.usePlayerItem(Player player, InteractionHand hand, ItemStack stack) -
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 InteractionResultAllay.mobInteract(Player player, InteractionHand hand) -
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 player, InteractionHand hand) protected voidAxolotl.usePlayerItem(Player player, InteractionHand hand, ItemStack stack) -
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 player, InteractionHand hand) AbstractHorse.mobInteract(Player player, InteractionHand hand) Horse.mobInteract(Player player, InteractionHand hand) SkeletonHorse.mobInteract(Player player, InteractionHand hand) ZombieHorse.mobInteract(Player player, InteractionHand hand) -
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 player, InteractionHand hand) LeashFenceKnotEntity.interact(Player player, InteractionHand hand) ArmorStand.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.private booleanArmorStand.swapItem(Player player, EquipmentSlot slot, ItemStack stack, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResultBogged.mobInteract(Player player, InteractionHand hand) protected InteractionResultCreeper.mobInteract(Player player, InteractionHand hand) Strider.mobInteract(Player player, InteractionHand hand) ZombieVillager.mobInteract(Player player, InteractionHand hand) -
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 player, InteractionHand hand) static InteractionResultPiglinAi.mobInteract(Piglin piglin, Player player, InteractionHand hand) -
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 player, InteractionHand hand) WanderingTrader.mobInteract(Player player, InteractionHand hand) -
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 entityToInteractOn, InteractionHand hand) voidPlayer.openItemGui(ItemStack stack, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return InteractionHandModifier and TypeMethodDescriptionstatic InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity shooter, Item weapon) 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 player, InteractionHand hand) Boat.interact(Player player, InteractionHand hand) ChestBoat.interact(Player player, InteractionHand hand) Minecart.interact(Player player, InteractionHand hand) MinecartChest.interact(Player player, InteractionHand hand) MinecartCommandBlock.interact(Player player, InteractionHand hand) MinecartFurnace.interact(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type InteractionHandModifier and TypeMethodDescriptionDyeItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.Item.interactLivingEntity(ItemStack stack, Player player, LivingEntity interactionTarget, InteractionHand usedHand) Try interacting with given entity.ItemStack.interactLivingEntity(Player player, LivingEntity entity, InteractionHand usedHand) NameTagItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.SaddleItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) 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)voidCrossbowItem.performShooting(Level level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, float velocity, float inaccuracy, LivingEntity target) protected voidProjectileWeaponItem.shoot(ServerLevel level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, List<ItemStack> projectileItems, float velocity, float inaccuracy, boolean isCrit, LivingEntity target) static InteractionResultHolder<ItemStack> ItemUtils.startUsingInstantly(Level level, Player player, InteractionHand hand) default InteractionResultHolder<ItemStack> Equipable.swapWithEquipmentSlot(Item item, Level level, Player player, InteractionHand hand) ArmorItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.BoatItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.BottleItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.BowItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.BucketItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.BundleItem.use(Level level, Player player, InteractionHand usedHand) Called to trigger the item's "innate" right click behavior.CrossbowItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.EggItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.ElytraItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.EmptyMapItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.EnderEyeItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.EnderpearlItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.ExperienceBottleItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.FireworkRocketItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.FishingRodItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.FoodOnAStickItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.HoneyBottleItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.InstrumentItem.use(Level level, Player player, InteractionHand usedHand) Called to trigger the item's "innate" right click behavior.Item.use(Level level, Player player, InteractionHand usedHand) Called to trigger the item's "innate" right click behavior.ItemStack.use(Level level, Player player, InteractionHand usedHand) Called when theItemStackis equipped and right-clicked.KnowledgeBookItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.LingeringPotionItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.MilkBucketItem.use(Level level, Player player, InteractionHand hand) 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 level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.ShieldItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.SnowballItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.SpawnEggItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.SplashPotionItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.SpyglassItem.use(Level level, Player player, InteractionHand usedHand) Called to trigger the item's "innate" right click behavior.ThrowablePotionItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.TridentItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.WindChargeItem.use(Level p_326306_, Player p_326042_, InteractionHand p_326470_) WritableBookItem.use(Level level, Player player, InteractionHand hand) Called to trigger the item's "innate" right click behavior.WrittenBookItem.use(Level level, Player player, InteractionHand hand) 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 player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) BlockPlaceContext(Level level, Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) UseOnContext(Player player, InteractionHand hand, BlockHitResult hitResult) UseOnContext(Level level, Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) -
Uses of InteractionHand in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected ItemInteractionResultAbstractCauldronBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultBeehiveBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCampfireBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCandleBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCandleCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCeilingHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultChiseledBookShelfBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultComposterBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResultFenceBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultFlowerPotBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultJukeboxBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultLecternBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultNoteBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResultRedStoneOreBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultRespawnAnchorBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultSweetBerryBushBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultTntBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResultWallHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) -
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 stack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultBlockBehaviour.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) -
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 booleanClientHooks.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 InteractionHandInputEvent.InteractionKeyMappingTriggered.handprivate final InteractionHandRenderHandEvent.handMethods 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.ArmPoseIClientItemExtensions.getArmPose(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using themethod.invalid 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 voidCommonHooks.onEmptyClick(Player player, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntity(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onItemRightClick(Player player, InteractionHand hand) static booleanCommonHooks.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 booleanIItemExtension.onEntitySwing(ItemStack stack, LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default booleanIItemStackExtension.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 intEventHooks.onItemUseStart(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) static voidEventHooks.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 InteractionHandLivingEntityUseItemEvent.handprivate final InteractionHandLivingUseTotemEvent.handMethods 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 InteractionHandModifierConstructorDescriptionprivateLivingEntityUseItemEvent(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 InteractionHandArrowNockEvent.handprivate final @Nullable InteractionHandPlayerDestroyItemEvent.handprivate final InteractionHandPlayerInteractEvent.handprivate final InteractionHandUseItemOnBlockEvent.handMethods in net.neoforged.neoforge.event.entity.player that return InteractionHandModifier and TypeMethodDescriptionArrowNockEvent.getHand()@Nullable InteractionHandPlayerDestroyItemEvent.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) protectedPlayerInteractEvent(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 booleanFluidUtil.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 booleanFluidUtil.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 FluidActionResultFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) static booleanFluidUtil.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.