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 InteractionHandModifier and TypeFieldDescriptionprivate final InteractionHandBookEditScreen.handprivate final InteractionHandBookSignScreen.handConstructors in net.minecraft.client.gui.screens.inventory with parameters of type InteractionHandModifierConstructorDescriptionBookEditScreen(Player pOwner, ItemStack pBook, InteractionHand pHand, WritableBookContent pContent) BookSignScreen(BookEditScreen pBookEditScreen, Player pOwner, InteractionHand pHand, List<String> pPages) -
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 InteractionResultMultiPlayerGameMode.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 TypeMethodDescriptionvoidLocalPlayer.openItemGui(ItemStack pStack, InteractionHand pHand) voidLocalPlayer.startUsingItem(InteractionHand pHand) voidLocalPlayer.swing(InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type InteractionHandModifier and TypeMethodDescriptionvoidItemInHandRenderer.itemUsed(InteractionHand pHand) ItemInHandRenderer.HandRenderSelection.onlyForHand(InteractionHand pHand) private voidItemInHandRenderer.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.ArmPosePlayerRenderer.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 InteractionResultCauldronInteraction.bannerInteraction(BlockState p_365039_, Level p_360792_, BlockPos p_364354_, Player p_362948_, InteractionHand p_363589_, ItemStack p_365256_) private static InteractionResultCauldronInteraction.dyedItemIteration(BlockState p_364488_, Level p_363832_, BlockPos p_363503_, Player p_362213_, InteractionHand p_360757_, ItemStack p_360363_) static InteractionResultCauldronInteraction.emptyBucket(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack, BlockState pState, SoundEvent pEmptySound) static InteractionResultCauldronInteraction.fillBucket(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) private static InteractionResultCauldronInteraction.fillLavaInteraction(BlockState p_360382_, Level p_365170_, BlockPos p_361603_, Player p_365069_, InteractionHand p_360292_, ItemStack p_364835_) private static InteractionResultCauldronInteraction.fillPowderSnowInteraction(BlockState p_361682_, Level p_362979_, BlockPos p_361996_, Player p_361273_, InteractionHand p_361726_, ItemStack p_361338_) private static InteractionResultCauldronInteraction.fillWaterInteraction(BlockState p_362955_, Level p_363378_, BlockPos p_363149_, Player p_364905_, InteractionHand p_361406_, ItemStack p_361413_) CauldronInteraction.interact(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) private static InteractionResultCauldronInteraction.shulkerBoxInteraction(BlockState p_360793_, Level p_365272_, BlockPos p_361319_, Player p_365441_, InteractionHand p_361085_, ItemStack p_365174_) -
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 pEntity, boolean pUsingSecondaryAction, InteractionHand pHand) static ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand, Vec3 pInteractionLocation) voidServerboundInteractPacket.Handler.onInteraction(InteractionHand pHand) voidServerboundInteractPacket.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 TypeMethodDescriptionvoidServerPlayer.openItemGui(ItemStack pStack, InteractionHand pHand) voidServerPlayer.swing(InteractionHand pHand) DemoMode.useItem(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) ServerPlayerGameMode.useItem(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) DemoMode.useItemOn(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) ServerPlayerGameMode.useItemOn(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionHand in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type InteractionHandModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run(ServerPlayer pPlayer, Entity pEntity, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world
Methods in net.minecraft.world that return InteractionHandModifier and TypeMethodDescriptionstatic 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 booleanEntity.attemptToShearEquipment(Player pPlayer, InteractionHand pHand, ItemStack pStack, Mob pMob) private InteractionResultMob.checkAndHandleImportantInteractions(Player pPlayer, InteractionHand pHand) LivingEntity.getItemInHand(InteractionHand pHand) static EquipmentSlotLivingEntity.getSlotForHand(InteractionHand pHand) Entity.interact(Player pPlayer, InteractionHand pHand) Interaction.interact(Player pPlayer, InteractionHand pHand) final InteractionResultMob.interact(Player pPlayer, InteractionHand pHand) Entity.interactAt(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.protected InteractionResultMob.mobInteract(Player pPlayer, InteractionHand pHand) voidLivingEntity.setItemInHand(InteractionHand pHand, ItemStack pStack) voidLivingEntity.startUsingItem(InteractionHand pHand) voidLivingEntity.swing(InteractionHand pHand) voidLivingEntity.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 InteractionResultAbstractFish.mobInteract(Player pPlayer, InteractionHand pHand) Animal.mobInteract(Player pPlayer, InteractionHand pHand) Bee.mobInteract(Player pPlayer, InteractionHand pHand) Cat.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultDolphin.mobInteract(Player pPlayer, InteractionHand pHand) HappyGhast.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultIronGolem.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 InteractionResultSnowGolem.mobInteract(Player pPlayer, InteractionHand pHand) protected voidAnimal.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 InteractionResultAllay.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type InteractionHandModifier and TypeMethodDescriptionAxolotl.mobInteract(Player pPlayer, InteractionHand pHand) protected voidAxolotl.usePlayerItem(Player pPlayer, InteractionHand pHand, ItemStack pStack) -
Uses of InteractionHand in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractChestedHorse.mobInteract(Player pPlayer, InteractionHand pHand) AbstractHorse.mobInteract(Player pPlayer, InteractionHand pHand) Horse.mobInteract(Player pPlayer, InteractionHand pHand) SkeletonHorse.mobInteract(Player pPlayer, InteractionHand pHand) ZombieHorse.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.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 InteractionHand -
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 booleanArmorStand.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 InteractionResultBogged.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultCreeper.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 InteractionResultPiglinAi.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) voidPlayer.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 InteractionHandProjectileUtil.getWeaponHoldingHand(LivingEntity livingEntity, Predicate<Item> itemPredicate) static InteractionHandProjectileUtil.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 pPlayer, InteractionHand pHand) AbstractChestBoat.interact(Player pPlayer, InteractionHand pHand) AbstractMinecartContainer.interact(Player pPlayer, InteractionHand pHand) Minecart.interact(Player pPlayer, InteractionHand pHand) MinecartChest.interact(Player pPlayer, InteractionHand pHand) MinecartCommandBlock.interact(Player pPlayer, InteractionHand pHand) MinecartFurnace.interact(Player pPlayer, InteractionHand pHand) -
Uses of InteractionHand in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type InteractionHandModifier and TypeMethodDescriptionvoidItemStack.hurtAndBreak(int pAmount, LivingEntity pEntity, InteractionHand pHand) DyeItem.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)voidCrossbowItem.performShooting(Level pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, float pVelocity, float pInaccuracy, LivingEntity pTarget) protected voidProjectileWeaponItem.shoot(ServerLevel pLevel, LivingEntity pShooter, InteractionHand pHand, ItemStack pWeapon, List<ItemStack> pProjectileItems, float pVelocity, float pInaccuracy, boolean pIsCrit, LivingEntity pTarget) static InteractionResultItemUtils.startUsingInstantly(Level pLevel, Player pPlayer, InteractionHand pHand) BoatItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) BottleItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) BowItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) BucketItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) BundleItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) CrossbowItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) 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 pLevel, Player pPlayer, InteractionHand pHand) 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 pLevel, Player pPlayer, InteractionHand pHand) FishingRodItem.use(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) InstrumentItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) 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 pLevel, Player pPlayer, InteractionHand pHand) SplashPotionItem.use(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) ThrowablePotionItem.use(Level pLevel, Player pPlayer, InteractionHand pHand) 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 TypeMethodDescriptionvoidBlocksAttacks.hurtBlockingItem(Level pLevel, ItemStack pStack, LivingEntity pEntity, InteractionHand pHand, float pDamage) voidBlocksAttacks.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 pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) UseOnContext(Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) UseOnContext(Level pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) -
Uses of InteractionHand in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResultAbstractCauldronBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultBeehiveBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultCakeBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultCampfireBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultCandleBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultComposterBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultJukeboxBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultLecternBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultNoteBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultSignBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultTntBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) VaultBlock.useItemOn(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResultWallHangingSignBlock.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionHand in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type InteractionHandModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useItemOn(ItemStack pStack, Level pLevel, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultBlockBehaviour.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 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 InteractionResultEventHooks.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.