Uses of Class
net.minecraft.util.Hand
-
Uses of Hand in net.minecraft.block
Methods in net.minecraft.block with parameters of type Hand Modifier and Type Method Description ActionResult
AbstractBlock.AbstractBlockState. onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit)
ActionResult
AbstractBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Deprecated.ActionResult
AbstractButtonBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AbstractCauldronBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AbstractFurnaceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AbstractSignBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AnvilBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BarrelBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BeaconBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BedBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BeehiveBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BellBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BrewingStandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CampfireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CandleBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CandleCakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CartographyTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CaveVinesBodyBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CaveVinesHeadBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CommandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ComparatorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ComposterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CraftingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DaylightDetectorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DispenserBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DoorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DragonEggBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
EnchantingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
EnderChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FenceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FenceGateBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FletchingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FlowerPotBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
GrindstoneBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
HopperBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
JigsawBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
JukeboxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LecternBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LeverBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LightBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LoomBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
NoteBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
PistonExtensionBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
PumpkinBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RedstoneOreBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RedstoneWireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RepeaterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RespawnAnchorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ShulkerBoxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
SmithingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
StairsBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
StonecutterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
StructureBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
SweetBerryBushBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
TntBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
TrapdoorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player. -
Uses of Hand in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type Hand Modifier and Type Method Description static ActionResult
CauldronBehavior. emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent)
static ActionResult
CauldronBehavior. fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent)
ActionResult
CauldronBehavior. interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack)
-
Uses of Hand in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as Hand Modifier and Type Field Description private Hand
BookEditScreen. hand
Constructors in net.minecraft.client.gui.screen.ingame with parameters of type Hand Constructor Description BookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand)
-
Uses of Hand in net.minecraft.client.network
Fields in net.minecraft.client.network declared as Hand Modifier and Type Field Description private Hand
ClientPlayerEntity. activeHand
Methods in net.minecraft.client.network that return Hand Modifier and Type Method Description Hand
ClientPlayerEntity. getActiveHand()
Methods in net.minecraft.client.network with parameters of type Hand Modifier and Type Method Description ActionResult
ClientPlayerInteractionManager. interactBlock(ClientPlayerEntity player, ClientWorld world, Hand hand, BlockHitResult hitResult)
ActionResult
ClientPlayerInteractionManager. interactEntity(PlayerEntity player, Entity entity, Hand hand)
ActionResult
ClientPlayerInteractionManager. interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)
ActionResult
ClientPlayerInteractionManager. interactItem(PlayerEntity player, World world, Hand hand)
void
ClientPlayerEntity. setCurrentHand(Hand hand)
void
ClientPlayerEntity. swingHand(Hand hand)
void
ClientPlayerEntity. useBook(ItemStack book, Hand hand)
Called 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 Hand Modifier and Type Method Description private static BipedEntityModel.ArmPose
PlayerEntityRenderer. 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 Hand Modifier and Type Method Description private void
HeldItemRenderer. renderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
void
HeldItemRenderer. resetEquipProgress(Hand hand)
static HeldItemRenderer.HandRenderType
HeldItemRenderer.HandRenderType. shouldOnlyRender(Hand hand)
-
Uses of Hand in net.minecraft.entity
Fields in net.minecraft.entity declared as Hand Modifier and Type Field Description Hand
LivingEntity. preferredHand
Methods in net.minecraft.entity that return Hand Modifier and Type Method Description Hand
LivingEntity. getActiveHand()
Methods in net.minecraft.entity with parameters of type Hand Modifier and Type Method Description ItemStack
LivingEntity. getStackInHand(Hand hand)
ActionResult
Entity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
Entity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
void
LivingEntity. sendToolBreakStatus(Hand hand)
void
LivingEntity. setCurrentHand(Hand hand)
void
LivingEntity. setStackInHand(Hand hand, ItemStack stack)
void
LivingEntity. swingHand(Hand hand)
void
LivingEntity. swingHand(Hand hand, boolean bool)
static <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 Hand Modifier and Type Method Description private boolean
ArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)
ActionResult
ItemFrameEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
LeashKnotEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
ArmorStandEntity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
-
Uses of Hand in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type Hand Modifier and Type Method Description ActionResult
MobEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.protected ActionResult
CreeperEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
HoglinEntity. interactMob(PlayerEntity player, Hand hand)
protected ActionResult
MobEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
PiglinEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
SkeletonHorseEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
ZombieHorseEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
ZombieVillagerEntity. interactMob(PlayerEntity player, Hand hand)
private ActionResult
MobEntity. interactWithItem(PlayerEntity player, Hand hand)
static ActionResult
PiglinBrain. 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 Hand Modifier and Type Method Description protected void
AnimalEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
AxolotlEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
CatEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
FoxEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
ActionResult
AbstractDonkeyEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
AnimalEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
AxolotlEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
CatEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
CowEntity. interactMob(PlayerEntity player, Hand hand)
protected ActionResult
DolphinEntity. interactMob(PlayerEntity player, Hand hand)
protected ActionResult
FishEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
GoatEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
HorseEntity. interactMob(PlayerEntity player, Hand hand)
protected ActionResult
IronGolemEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
MooshroomEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
OcelotEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
PandaEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
ParrotEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
PigEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
SheepEntity. interactMob(PlayerEntity player, Hand hand)
protected ActionResult
SnowGolemEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
StriderEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
VillagerEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
WanderingTraderEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
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 Modifier and Type Method Description ActionResult
PlayerEntity. interact(Entity entity, Hand hand)
void
PlayerEntity. useBook(ItemStack book, Hand hand)
Called when the player uses (defaults to right click) a writable or written book item. -
Uses of Hand in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile that return Hand Modifier and Type Method Description static Hand
ProjectileUtil. getHandPossiblyHolding(LivingEntity entity, Item item)
-
Uses of Hand in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle with parameters of type Hand Modifier and Type Method Description ActionResult
BoatEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
CommandBlockMinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
FurnaceMinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
MinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
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 Hand Modifier and Type Field Description private Hand
ItemUsageContext. hand
Methods in net.minecraft.item that return Hand Modifier and Type Method Description Hand
ItemUsageContext. getHand()
Methods in net.minecraft.item with parameters of type Hand Modifier and Type Method Description static TypedActionResult<ItemStack>
ItemUsage. consumeHeldItem(World world, PlayerEntity player, Hand hand)
private static void
CrossbowItem. shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)
static void
CrossbowItem. shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence)
TypedActionResult<ItemStack>
ArmorItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BoatItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BowItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BucketItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BundleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
CrossbowItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EggItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ElytraItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EmptyMapItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EnderEyeItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EnderPearlItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ExperienceBottleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
FireworkItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
FishingRodItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
GlassBottleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
HoneyBottleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
Item. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ItemStack. use(World world, PlayerEntity user, Hand hand)
TypedActionResult<ItemStack>
KnowledgeBookItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
LilyPadItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
LingeringPotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
MilkBucketItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
OnAStickItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
PotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ShieldItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SnowballItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SpawnEggItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SplashPotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SpyglassItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ThrowablePotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
TridentItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
WritableBookItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
WrittenBookItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.ActionResult
DyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
Item. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
ItemStack. useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
NameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
SaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
Constructors in net.minecraft.item with parameters of type Hand Constructor Description ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)
ItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
ItemUsageContext(PlayerEntity player, Hand hand, BlockHitResult hit)
ItemUsageContext(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 Hand Modifier and Type Field Description private Hand
HandSwingC2SPacket. hand
private Hand
PlayerInteractBlockC2SPacket. hand
private Hand
PlayerInteractEntityC2SPacket.InteractAtHandler. hand
private Hand
PlayerInteractEntityC2SPacket.InteractHandler. hand
private Hand
PlayerInteractItemC2SPacket. hand
Methods in net.minecraft.network.packet.c2s.play that return Hand Modifier and Type Method Description Hand
HandSwingC2SPacket. getHand()
Hand
PlayerInteractBlockC2SPacket. getHand()
Hand
PlayerInteractItemC2SPacket. getHand()
Methods in net.minecraft.network.packet.c2s.play with parameters of type Hand Modifier and Type Method Description void
PlayerInteractEntityC2SPacket.Handler. interact(Hand hand)
static PlayerInteractEntityC2SPacket
PlayerInteractEntityC2SPacket. interact(Entity entity, boolean playerSneaking, Hand hand)
void
PlayerInteractEntityC2SPacket.Handler. interactAt(Hand hand, Vec3d pos)
static PlayerInteractEntityC2SPacket
PlayerInteractEntityC2SPacket. interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos)
Constructors in net.minecraft.network.packet.c2s.play with parameters of type Hand Constructor Description HandSwingC2SPacket(Hand hand)
InteractAtHandler(Hand hand, Vec3d pos)
InteractHandler(Hand hand)
PlayerInteractBlockC2SPacket(Hand hand, BlockHitResult blockHitResult)
PlayerInteractItemC2SPacket(Hand hand)
-
Uses of Hand in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as Hand Modifier and Type Field Description private Hand
OpenWrittenBookS2CPacket. hand
Methods in net.minecraft.network.packet.s2c.play that return Hand Modifier and Type Method Description Hand
OpenWrittenBookS2CPacket. getHand()
Constructors in net.minecraft.network.packet.s2c.play with parameters of type Hand Constructor Description OpenWrittenBookS2CPacket(Hand hand)
-
Uses of Hand in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type Hand Modifier and Type Method Description ActionResult
DemoServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
ActionResult
ServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
ActionResult
DemoServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
ActionResult
ServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
ActionResult
ServerPlayNetworkHandler.Interaction. run(ServerPlayerEntity player, Entity entity, Hand hand)
void
ServerPlayerEntity. swingHand(Hand hand)
void
ServerPlayerEntity. useBook(ItemStack book, Hand hand)
Called 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 Modifier and Type Method Description static Hand
Hand. valueOf(String name)
Returns the enum constant of this type with the specified name.static Hand[]
Hand. values()
Returns an array containing the constants of this enum type, in the order they are declared.