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 owner, ItemStack book, InteractionHand hand, WritableBookContent content) BookSignScreen(BookEditScreen bookEditScreen, Player owner, InteractionHand hand, List<String> pages) -
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 entity, EntityHitResult hitResult, InteractionHand hand) private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) MultiPlayerGameMode.useItem(Player player, InteractionHand hand) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) -
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 itemStack, 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 frameInterp, float xRot, InteractionHand hand, float attack, ItemStack itemStack, float inverseArmHeight, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords) -
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.ArmPoseAvatarRenderer.getArmPose(Avatar avatar, ItemStack itemInHand, InteractionHand hand) -
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 state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.dyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) static InteractionResultCauldronInteraction.emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, BlockState newState, SoundEvent soundEvent) static InteractionResultCauldronInteraction.fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, ItemStack newItem, Predicate<BlockState> canFill, SoundEvent soundEvent) private static InteractionResultCauldronInteraction.fillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.fillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.fillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) CauldronInteraction.interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.shulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
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.handThe field for thehandrecord component.private 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()ServerboundInteractPacket.hand()Returns the value of thehandrecord component.Constructors in net.minecraft.network.protocol.game with parameters of type InteractionHandModifierConstructorDescriptionServerboundInteractPacket(int entityId, InteractionHand hand, Vec3 location, boolean usingSecondaryAction) Creates an instance of aServerboundInteractPacketrecord class.ServerboundUseItemOnPacket(InteractionHand hand, BlockHitResult blockHit, int sequence) ServerboundUseItemPacket(InteractionHand hand, int sequence, float yRot, float xRot) -
Uses of InteractionHand in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type InteractionHandModifier and TypeMethodDescriptionprivate static intSwingCommand.swing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type InteractionHandModifier and TypeMethodDescriptionvoidServerPlayer.openItemGui(ItemStack itemStack, InteractionHand hand) voidServerPlayer.swing(InteractionHand hand) DemoMode.useItem(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand) ServerPlayerGameMode.useItem(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand) DemoMode.useItemOn(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand, BlockHitResult hitResult) -
Uses of InteractionHand in net.minecraft.world
Subclasses with type arguments of type InteractionHand in net.minecraft.worldFields in net.minecraft.world with type parameters of type InteractionHandModifier and TypeFieldDescriptionprivate static final IntFunction<InteractionHand> InteractionHand.BY_IDstatic final StreamCodec<io.netty.buffer.ByteBuf, InteractionHand> InteractionHand.STREAM_CODECMethods 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 player, InteractionHand hand, ItemStack heldItem, Mob target) private InteractionResultMob.checkAndHandleImportantInteractions(Player player, InteractionHand hand) protected voidTamableAnimal.feed(Player player, InteractionHand hand, ItemStack itemStack, float healingFactor, float defaultHeal) LivingEntity.getItemInHand(InteractionHand hand) Entity.interact(Player player, InteractionHand hand, Vec3 location) Interaction.interact(Player player, InteractionHand hand, Vec3 location) Mob.interact(Player player, InteractionHand hand, Vec3 location) protected InteractionResultAgeableMob.mobInteract(Player player, InteractionHand hand) protected InteractionResultMob.mobInteract(Player player, InteractionHand hand) voidLivingEntity.setItemInHand(InteractionHand hand, ItemStack itemStack) voidLivingEntity.startUsingItem(InteractionHand hand) voidLivingEntity.swing(InteractionHand hand) voidLivingEntity.swing(InteractionHand hand, boolean sendToSwingingEntity) protected voidMob.usePlayerItem(Player player, InteractionHand hand, ItemStack itemStack) -
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 pickupEntity) Animal.mobInteract(Player player, InteractionHand hand) -
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 itemStack) -
Uses of InteractionHand in net.minecraft.world.entity.animal.bee
Methods in net.minecraft.world.entity.animal.bee with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type InteractionHandModifier and TypeMethodDescriptionCamelHusk.interact(Player player, InteractionHand hand, Vec3 location) Camel.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractCow.mobInteract(Player player, InteractionHand hand) MushroomCow.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResultDolphin.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine with parameters of type InteractionHandModifier and TypeMethodDescriptionZombieHorse.interact(Player player, InteractionHand hand, Vec3 location) AbstractChestedHorse.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.feline
Methods in net.minecraft.world.entity.animal.feline with parameters of type InteractionHandModifier and TypeMethodDescriptionCat.mobInteract(Player player, InteractionHand hand) Ocelot.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResultAbstractFish.mobInteract(Player player, InteractionHand hand) -
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.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type InteractionHandModifier and TypeMethodDescriptionCopperGolem.mobInteract(Player player, InteractionHand hand) protected InteractionResultIronGolem.mobInteract(Player player, InteractionHand hand) protected InteractionResultSnowGolem.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractNautilus.interact(Player player, InteractionHand hand, Vec3 location) AbstractNautilus.mobInteract(Player player, InteractionHand hand) protected voidAbstractNautilus.usePlayerItem(Player player, InteractionHand hand, ItemStack itemStack) -
Uses of InteractionHand in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig with parameters of type InteractionHand -
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 TypeMethodDescriptionArmorStand.interact(Player player, InteractionHand hand, Vec3 location) ItemFrame.interact(Player player, InteractionHand hand, Vec3 location) LeashFenceKnotEntity.interact(Player player, InteractionHand hand, Vec3 location) private booleanArmorStand.swapItem(Player player, EquipmentSlot slot, ItemStack playerItemStack, 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 InteractionResultCreeper.mobInteract(Player player, InteractionHand hand) Strider.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(ServerLevel level, Piglin body, Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type InteractionHandModifier and TypeMethodDescriptionprotected InteractionResultBogged.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie with parameters of type InteractionHandModifier and TypeMethodDescriptionZombieVillager.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionHand in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager with parameters of type InteractionHand -
Uses of InteractionHand in net.minecraft.world.entity.npc.wanderingtrader
Methods in net.minecraft.world.entity.npc.wanderingtrader with parameters of type InteractionHandModifier and TypeMethodDescriptionWanderingTrader.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 entity, InteractionHand hand, Vec3 location) voidPlayer.openItemGui(ItemStack itemStack, 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 mob, Item weaponItem) Deprecated. -
Uses of InteractionHand in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractBoat.interact(Player player, InteractionHand hand, Vec3 location) AbstractChestBoat.interact(Player player, InteractionHand hand, Vec3 location) -
Uses of InteractionHand in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart with parameters of type InteractionHandModifier and TypeMethodDescriptionAbstractMinecartContainer.interact(Player player, InteractionHand hand, Vec3 location) Minecart.interact(Player player, InteractionHand hand, Vec3 location) MinecartChest.interact(Player player, InteractionHand hand, Vec3 location) MinecartCommandBlock.interact(Player player, InteractionHand hand, Vec3 location) MinecartFurnace.interact(Player player, InteractionHand hand, Vec3 location) -
Uses of InteractionHand in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type InteractionHandModifier and TypeMethodDescriptionvoidItemStack.hurtAndBreak(int amount, LivingEntity owner, InteractionHand hand) DyeItem.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.Item.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.ItemStack.interactLivingEntity(Player player, LivingEntity target, InteractionHand hand) NameTagItem.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(ItemStack, Player, LivingEntity, InteractionHand)to call into IShearable instead of relying onMob.mobInteract(Player, InteractionHand)voidCrossbowItem.performShooting(Level level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, float power, float uncertainty, @Nullable LivingEntity targetOverride) protected voidProjectileWeaponItem.shoot(ServerLevel level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, List<ItemStack> projectiles, float power, float uncertainty, boolean isCrit, @Nullable LivingEntity targetOverride) static InteractionResultItemUtils.startUsingInstantly(Level level, Player player, InteractionHand hand) BoatItem.use(Level level, Player player, InteractionHand hand) BottleItem.use(Level level, Player player, InteractionHand hand) BowItem.use(Level level, Player player, InteractionHand hand) BucketItem.use(Level level, Player player, InteractionHand hand) BundleItem.use(Level level, Player player, InteractionHand hand) CrossbowItem.use(Level level, Player player, InteractionHand hand) EggItem.use(Level level, Player player, InteractionHand hand) EmptyMapItem.use(Level level, Player player, InteractionHand hand) EnderEyeItem.use(Level level, Player player, InteractionHand hand) EnderpearlItem.use(Level level, Player player, InteractionHand hand) ExperienceBottleItem.use(Level level, Player player, InteractionHand hand) FireworkRocketItem.use(Level level, Player player, InteractionHand hand) FishingRodItem.use(Level level, Player player, InteractionHand hand) FoodOnAStickItem.use(Level level, Player player, InteractionHand hand) InstrumentItem.use(Level level, Player player, InteractionHand hand) Item.use(Level level, Player player, InteractionHand hand) ItemStack.use(Level level, Player player, InteractionHand hand) KnowledgeBookItem.use(Level level, Player player, InteractionHand hand) LingeringPotionItem.use(Level level, Player player, InteractionHand hand) PlaceOnWaterBlockItem.use(Level level, Player player, InteractionHand hand) SnowballItem.use(Level level, Player player, InteractionHand hand) SpawnEggItem.use(Level level, Player player, InteractionHand hand) SplashPotionItem.use(Level level, Player player, InteractionHand hand) SpyglassItem.use(Level level, Player player, InteractionHand hand) ThrowablePotionItem.use(Level level, Player player, InteractionHand hand) TridentItem.use(Level level, Player player, InteractionHand hand) WindChargeItem.use(Level level, Player player, InteractionHand hand) WritableBookItem.use(Level level, Player player, InteractionHand hand) WrittenBookItem.use(Level level, Player player, InteractionHand hand) -
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 level, ItemStack item, LivingEntity user, InteractionHand hand, float damage) voidBlocksAttacks.hurtBlockingItem(Level level, ItemStack item, LivingEntity user, InteractionHand hand, float damage, int fixedDamage) Consumable.startConsuming(LivingEntity user, ItemStack stack, InteractionHand hand) -
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 itemInHand, BlockHitResult hitResult) BlockPlaceContext(Level level, @Nullable Player player, InteractionHand hand, ItemStack itemStackInHand, BlockHitResult hitResult) UseOnContext(Player player, InteractionHand hand, BlockHitResult hitResult) UseOnContext(Level level, @Nullable 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 InteractionResultAbstractCauldronBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBeehiveBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCakeBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCampfireBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultComposterBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCopperGolemStatueBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultLecternBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultNoteBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultPumpkinBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultShelfBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultTntBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultWallHangingSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultWeatheringCopperGolemStatueBlock.useItemOn(ItemStack itemStack, 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 itemStack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useItemOn(ItemStack itemStack, 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, SubmitNodeCollector submitNodeCollector, 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, SubmitNodeCollector submitNodeCollector, 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 @Nullable 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) Deprecated, for removal: This API element is subject to removal in a future version.static booleanFluidUtil.interactWithFluidHandler(Player player, InteractionHand hand, IFluidHandler handler) Deprecated, for removal: This API element is subject to removal in a future version.static FluidActionResultFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) Deprecated, for removal: This API element is subject to removal in a future version.static booleanFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of InteractionHand in net.neoforged.neoforge.transfer.access
Methods in net.neoforged.neoforge.transfer.access with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic ItemAccessItemAccess.forPlayerInteraction(Player player, InteractionHand hand) Creates an item access instance for interaction with a player's hand. -
Uses of InteractionHand in net.neoforged.neoforge.transfer.fluid
Methods in net.neoforged.neoforge.transfer.fluid with parameters of type InteractionHandModifier and TypeMethodDescriptionstatic booleanFluidUtil.interactWithFluidHandler(Player player, InteractionHand hand, @Nullable BlockPos pos, ResourceHandler<FluidResource> handler) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.static 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 FluidStackFluidUtil.tryPlaceFluid(@Nullable ResourceHandler<FluidResource> source, @Nullable Player player, Level level, InteractionHand hand, BlockPos pos) Tries to extract one bucket of a fluid resource from a resource handler and place it into the level as a block.static booleanFluidUtil.tryPlaceFluid(FluidResource resource, @Nullable Player player, Level level, InteractionHand hand, BlockPos pos) Tries to place one bucket of a fluid resource into the level as a block. -
Uses of InteractionHand in net.neoforged.neoforge.transfer.item
Methods in net.neoforged.neoforge.transfer.item with parameters of type InteractionHandModifier and TypeMethodDescriptionPlayerInventoryWrapper.getHandSlot(InteractionHand hand) Retrieves a wrapper for the slot corresponding to the given hand.
FluidUtil.interactWithFluidHandler(Player, InteractionHand, Level, BlockPos, Direction)instead.