Uses of Enum Class
net.minecraft.util.Hand
Packages that use Hand
Package
Description
Provides the cauldron behavior system,
which determines what happens when a player interacts with a cauldron.
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Hand in net.minecraft.block
Methods in net.minecraft.block with parameters of type HandModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.onUseWithItem(ItemStack stack, World world, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractCauldronBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultBeehiveBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCampfireBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultChiseledBookshelfBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultComposterBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultDecoratedPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFenceBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFlowerPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultJukeboxBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultLecternBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultNoteBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultPumpkinBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRedstoneOreBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRespawnAnchorBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultSweetBerryBushBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultTntBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) VaultBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultWallHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) -
Uses of Hand in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type HandModifier and TypeMethodDescriptionstatic ItemActionResultCauldronBehavior.emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> fullPredicate, SoundEvent soundEvent) Empties a cauldron if it's full.static ItemActionResultCauldronBehavior.fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) Fills a cauldron from a bucket stack.CauldronBehavior.interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) Called when a player interacts with a cauldron. -
Uses of Hand in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as HandConstructors in net.minecraft.client.gui.screen.ingame with parameters of type HandModifierConstructorDescriptionBookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand) -
Uses of Hand in net.minecraft.client.network
Fields in net.minecraft.client.network declared as HandMethods in net.minecraft.client.network that return HandMethods in net.minecraft.client.network with parameters of type HandModifier and TypeMethodDescriptionClientPlayerInteractionManager.interactBlock(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) private ActionResultClientPlayerInteractionManager.interactBlockInternal(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) ClientPlayerInteractionManager.interactEntity(PlayerEntity player, Entity entity, Hand hand) ClientPlayerInteractionManager.interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) ClientPlayerInteractionManager.interactItem(PlayerEntity player, Hand hand) voidClientPlayerEntity.setCurrentHand(Hand hand) voidvoidCalled when the player uses (defaults to right click) a writable or written book item. -
Uses of Hand in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type HandModifier and TypeMethodDescriptionprivate static BipedEntityModel.ArmPosePlayerEntityRenderer.getArmPose(AbstractClientPlayerEntity player, Hand hand) -
Uses of Hand in net.minecraft.client.render.item
Methods in net.minecraft.client.render.item with parameters of type HandModifier and TypeMethodDescriptionprivate voidHeldItemRenderer.renderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) voidHeldItemRenderer.resetEquipProgress(Hand hand) HeldItemRenderer.HandRenderType.shouldOnlyRender(Hand hand) -
Uses of Hand in net.minecraft.entity
Fields in net.minecraft.entity declared as HandMethods in net.minecraft.entity that return HandMethods in net.minecraft.entity with parameters of type HandModifier and TypeMethodDescriptionstatic EquipmentSlotLivingEntity.getSlotForHand(Hand hand) LivingEntity.getStackInHand(Hand hand) Entity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.Entity.interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position.voidLivingEntity.setCurrentHand(Hand hand) voidLivingEntity.setStackInHand(Hand hand, ItemStack stack) voidvoidstatic <T extends LivingEntity & Bucketable>
Optional<ActionResult> Bucketable.tryBucket(PlayerEntity player, Hand hand, T entity) -
Uses of Hand in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration with parameters of type HandModifier and TypeMethodDescriptionprivate booleanArmorStandEntity.equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) InteractionEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ItemFrameEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.LeashKnotEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ArmorStandEntity.interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position. -
Uses of Hand in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type HandModifier and TypeMethodDescriptionfinal ActionResultMobEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResultBoggedEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultCreeperEntity.interactMob(PlayerEntity player, Hand hand) HoglinEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultMobEntity.interactMob(PlayerEntity player, Hand hand) PiglinEntity.interactMob(PlayerEntity player, Hand hand) SkeletonHorseEntity.interactMob(PlayerEntity player, Hand hand) ZombieHorseEntity.interactMob(PlayerEntity player, Hand hand) ZombieVillagerEntity.interactMob(PlayerEntity player, Hand hand) private ActionResultMobEntity.interactWithItem(PlayerEntity player, Hand hand) static ActionResultPiglinBrain.playerInteract(PiglinEntity piglin, PlayerEntity player, Hand hand) -
Uses of Hand in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type HandModifier and TypeMethodDescriptionprotected voidAnimalEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidAxolotlEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidCatEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidFoxEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) AbstractDonkeyEntity.interactMob(PlayerEntity player, Hand hand) AbstractHorseEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultAllayEntity.interactMob(PlayerEntity player, Hand hand) AnimalEntity.interactMob(PlayerEntity player, Hand hand) ArmadilloEntity.interactMob(PlayerEntity player, Hand hand) AxolotlEntity.interactMob(PlayerEntity player, Hand hand) CamelEntity.interactMob(PlayerEntity player, Hand hand) CatEntity.interactMob(PlayerEntity player, Hand hand) CowEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultDolphinEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultFishEntity.interactMob(PlayerEntity player, Hand hand) GoatEntity.interactMob(PlayerEntity player, Hand hand) HorseEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultIronGolemEntity.interactMob(PlayerEntity player, Hand hand) MooshroomEntity.interactMob(PlayerEntity player, Hand hand) OcelotEntity.interactMob(PlayerEntity player, Hand hand) PandaEntity.interactMob(PlayerEntity player, Hand hand) ParrotEntity.interactMob(PlayerEntity player, Hand hand) PigEntity.interactMob(PlayerEntity player, Hand hand) SheepEntity.interactMob(PlayerEntity player, Hand hand) SnifferEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultSnowGolemEntity.interactMob(PlayerEntity player, Hand hand) StriderEntity.interactMob(PlayerEntity player, Hand hand) TadpoleEntity.interactMob(PlayerEntity player, Hand hand) VillagerEntity.interactMob(PlayerEntity player, Hand hand) WanderingTraderEntity.interactMob(PlayerEntity player, Hand hand) WolfEntity.interactMob(PlayerEntity player, Hand hand) -
Uses of Hand in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type Hand -
Uses of Hand in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile that return HandModifier and TypeMethodDescriptionstatic HandProjectileUtil.getHandPossiblyHolding(LivingEntity entity, Item item) -
Uses of Hand in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle with parameters of type HandModifier and TypeMethodDescriptionBoatEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ChestBoatEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ChestMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.CommandBlockMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.FurnaceMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.MinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.StorageMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity. -
Uses of Hand in net.minecraft.item
Fields in net.minecraft.item declared as HandMethods in net.minecraft.item that return HandMethods in net.minecraft.item with parameters of type HandModifier and TypeMethodDescriptionstatic TypedActionResult<ItemStack> ItemUsage.consumeHeldItem(World world, PlayerEntity player, Hand hand) Consumes the item thatplayerholds.default TypedActionResult<ItemStack> Equipment.equipAndSwap(Item item, World world, PlayerEntity user, Hand hand) voidCrossbowItem.shootAll(World world, LivingEntity shooter, Hand hand, ItemStack stack, float speed, float divergence, @Nullable LivingEntity target) protected voidRangedWeaponItem.shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable LivingEntity target) ArmorItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BoatItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BowItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BucketItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BundleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.CrossbowItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EggItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ElytraItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EmptyMapItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderEyeItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderPearlItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ExperienceBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FireworkRocketItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FishingRodItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GlassBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GoatHornItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.HoneyBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.Item.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ItemStack.use(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.LingeringPotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.MilkBucketItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.OminousBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.OnAStickItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PlaceableOnWaterItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ShieldItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SnowballItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpawnEggItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SplashPotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpyglassItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ThrowablePotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.TridentItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WindChargeItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WritableBookItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WrittenBookItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.DyeItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.ItemStack.useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.SaddleItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Constructors in net.minecraft.item with parameters of type HandModifierConstructorDescriptionItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult) protectedItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) ItemUsageContext(PlayerEntity player, Hand hand, BlockHitResult hit) protectedItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) -
Uses of Hand in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as HandModifier and TypeFieldDescriptionprivate final HandHandSwingC2SPacket.handprivate final HandPlayerInteractBlockC2SPacket.handprivate final HandPlayerInteractEntityC2SPacket.InteractAtHandler.handprivate final HandPlayerInteractEntityC2SPacket.InteractHandler.handprivate final HandPlayerInteractItemC2SPacket.handMethods in net.minecraft.network.packet.c2s.play that return HandModifier and TypeMethodDescriptionHandSwingC2SPacket.getHand()PlayerInteractBlockC2SPacket.getHand()PlayerInteractItemC2SPacket.getHand()Methods in net.minecraft.network.packet.c2s.play with parameters of type HandModifier and TypeMethodDescriptionvoidvoidPlayerInteractEntityC2SPacket.Handler.interactAt(Hand hand, Vec3d pos) PlayerInteractEntityC2SPacket.interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos) Constructors in net.minecraft.network.packet.c2s.play with parameters of type HandModifierConstructorDescriptionHandSwingC2SPacket(Hand hand) (package private)InteractAtHandler(Hand hand, Vec3d pos) (package private)InteractHandler(Hand hand) PlayerInteractBlockC2SPacket(Hand hand, BlockHitResult blockHitResult, int sequence) PlayerInteractItemC2SPacket(Hand hand, int sequence, float yaw, float pitch) -
Uses of Hand in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as HandMethods in net.minecraft.network.packet.s2c.play that return HandConstructors in net.minecraft.network.packet.s2c.play with parameters of type Hand -
Uses of Hand in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type HandModifier and TypeMethodDescriptionDemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) DemoServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayNetworkHandler.Interaction.run(ServerPlayerEntity player, Entity entity, Hand hand) voidvoidCalled when the player uses (defaults to right click) a writable or written book item. -
Uses of Hand in net.minecraft.util
Methods in net.minecraft.util that return Hand