类的使用
net.minecraft.util.Hand
-
-
net.minecraft.block中Hand的使用
参数类型为Hand的net.minecraft.block中的方法 修饰符和类型 方法 说明 ActionResultAbstractBlock.AbstractBlockState. onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit)ActionResultAbstractBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)已过时。ActionResultAbstractButtonBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAbstractCauldronBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAbstractFurnaceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAbstractSignBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultAnvilBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBarrelBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBeaconBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBedBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBeehiveBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBellBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultBrewingStandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCampfireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCandleBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCandleCakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCartographyTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCaveVinesBodyBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCaveVinesHeadBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCommandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultComparatorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultComposterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultCraftingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDaylightDetectorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDispenserBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDoorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultDragonEggBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultEnchantingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultEnderChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFenceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFenceGateBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFletchingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultFlowerPotBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultGrindstoneBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultHopperBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultJigsawBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultJukeboxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLecternBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLeverBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLightBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultLoomBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultNoteBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultPistonExtensionBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultPumpkinBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRedstoneOreBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRedstoneWireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRepeaterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultRespawnAnchorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultShulkerBoxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultSmithingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultStairsBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultStonecutterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultStructureBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultSweetBerryBushBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultTntBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.ActionResultTrapdoorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player. -
net.minecraft.block.cauldron中Hand的使用
参数类型为Hand的net.minecraft.block.cauldron中的方法 修饰符和类型 方法 说明 static ActionResultCauldronBehavior. emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent)static ActionResultCauldronBehavior. fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent)ActionResultCauldronBehavior. interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
net.minecraft.client.gui.screen.ingame中Hand的使用
声明为Hand的net.minecraft.client.gui.screen.ingame中的字段 修饰符和类型 字段 说明 private HandBookEditScreen. hand参数类型为Hand的net.minecraft.client.gui.screen.ingame中的构造器 构造器 说明 BookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand) -
net.minecraft.client.network中Hand的使用
声明为Hand的net.minecraft.client.network中的字段 修饰符和类型 字段 说明 private HandClientPlayerEntity. activeHand返回Hand的net.minecraft.client.network中的方法 修饰符和类型 方法 说明 HandClientPlayerEntity. getActiveHand()参数类型为Hand的net.minecraft.client.network中的方法 修饰符和类型 方法 说明 ActionResultClientPlayerInteractionManager. interactBlock(ClientPlayerEntity player, ClientWorld world, Hand hand, BlockHitResult hitResult)ActionResultClientPlayerInteractionManager. interactEntity(PlayerEntity player, Entity entity, Hand hand)ActionResultClientPlayerInteractionManager. interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)ActionResultClientPlayerInteractionManager. interactItem(PlayerEntity player, World world, Hand hand)voidClientPlayerEntity. setCurrentHand(Hand hand)voidClientPlayerEntity. swingHand(Hand hand)voidClientPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item. -
net.minecraft.client.render.entity中Hand的使用
参数类型为Hand的net.minecraft.client.render.entity中的方法 修饰符和类型 方法 说明 private static BipedEntityModel.ArmPosePlayerEntityRenderer. getArmPose(AbstractClientPlayerEntity player, Hand hand) -
net.minecraft.client.render.item中Hand的使用
参数类型为Hand的net.minecraft.client.render.item中的方法 修饰符和类型 方法 说明 private 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)static HeldItemRenderer.HandRenderTypeHeldItemRenderer.HandRenderType. shouldOnlyRender(Hand hand) -
net.minecraft.entity中Hand的使用
声明为Hand的net.minecraft.entity中的字段 修饰符和类型 字段 说明 HandLivingEntity. preferredHand返回Hand的net.minecraft.entity中的方法 修饰符和类型 方法 说明 HandLivingEntity. getActiveHand()参数类型为Hand的net.minecraft.entity中的方法 修饰符和类型 方法 说明 ItemStackLivingEntity. getStackInHand(Hand hand)ActionResultEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultEntity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)voidLivingEntity. sendToolBreakStatus(Hand hand)voidLivingEntity. setCurrentHand(Hand hand)voidLivingEntity. setStackInHand(Hand hand, ItemStack stack)voidLivingEntity. swingHand(Hand hand)voidLivingEntity. swingHand(Hand hand, boolean fromServerPlayer)static <T extends LivingEntity & Bucketable>
Optional<ActionResult>Bucketable. tryBucket(PlayerEntity player, Hand hand, T entity) -
net.minecraft.entity.decoration中Hand的使用
参数类型为Hand的net.minecraft.entity.decoration中的方法 修饰符和类型 方法 说明 private booleanArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)ActionResultItemFrameEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultLeashKnotEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultArmorStandEntity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) -
net.minecraft.entity.mob中Hand的使用
参数类型为Hand的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 ActionResultMobEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.protected ActionResultCreeperEntity. interactMob(PlayerEntity player, Hand hand)ActionResultHoglinEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultMobEntity. interactMob(PlayerEntity player, Hand hand)ActionResultPiglinEntity. interactMob(PlayerEntity player, Hand hand)ActionResultSkeletonHorseEntity. interactMob(PlayerEntity player, Hand hand)ActionResultZombieHorseEntity. interactMob(PlayerEntity player, Hand hand)ActionResultZombieVillagerEntity. interactMob(PlayerEntity player, Hand hand)private ActionResultMobEntity. interactWithItem(PlayerEntity player, Hand hand)static ActionResultPiglinBrain. playerInteract(PiglinEntity piglin, PlayerEntity player, Hand hand) -
net.minecraft.entity.passive中Hand的使用
-
net.minecraft.entity.player中Hand的使用
参数类型为Hand的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 ActionResultPlayerEntity. interact(Entity entity, Hand hand)voidPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item. -
net.minecraft.entity.projectile中Hand的使用
返回Hand的net.minecraft.entity.projectile中的方法 修饰符和类型 方法 说明 static HandProjectileUtil. getHandPossiblyHolding(LivingEntity entity, Item item) -
net.minecraft.entity.vehicle中Hand的使用
参数类型为Hand的net.minecraft.entity.vehicle中的方法 修饰符和类型 方法 说明 ActionResultBoatEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultCommandBlockMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultFurnaceMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultStorageMinecartEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity. -
net.minecraft.item中Hand的使用
声明为Hand的net.minecraft.item中的字段 修饰符和类型 字段 说明 private HandItemUsageContext. hand返回Hand的net.minecraft.item中的方法 修饰符和类型 方法 说明 HandItemUsageContext. getHand()参数类型为Hand的net.minecraft.item中的方法 修饰符和类型 方法 说明 static TypedActionResult<ItemStack>ItemUsage. consumeHeldItem(World world, PlayerEntity player, Hand hand)private static voidCrossbowItem. shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)static voidCrossbowItem. 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.ActionResultDyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItemStack. useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)ActionResultNameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultSaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)参数类型为Hand的net.minecraft.item中的构造器 构造器 说明 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) -
net.minecraft.network.packet.c2s.play中Hand的使用
声明为Hand的net.minecraft.network.packet.c2s.play中的字段 修饰符和类型 字段 说明 private HandHandSwingC2SPacket. handprivate HandPlayerInteractBlockC2SPacket. handprivate HandPlayerInteractEntityC2SPacket.InteractAtHandler. handprivate HandPlayerInteractEntityC2SPacket.InteractHandler. handprivate HandPlayerInteractItemC2SPacket. hand返回Hand的net.minecraft.network.packet.c2s.play中的方法 修饰符和类型 方法 说明 HandHandSwingC2SPacket. getHand()HandPlayerInteractBlockC2SPacket. getHand()HandPlayerInteractItemC2SPacket. getHand()参数类型为Hand的net.minecraft.network.packet.c2s.play中的方法 修饰符和类型 方法 说明 voidPlayerInteractEntityC2SPacket.Handler. interact(Hand hand)static PlayerInteractEntityC2SPacketPlayerInteractEntityC2SPacket. interact(Entity entity, boolean playerSneaking, Hand hand)voidPlayerInteractEntityC2SPacket.Handler. interactAt(Hand hand, Vec3d pos)static PlayerInteractEntityC2SPacketPlayerInteractEntityC2SPacket. interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos)参数类型为Hand的net.minecraft.network.packet.c2s.play中的构造器 构造器 说明 HandSwingC2SPacket(Hand hand)InteractAtHandler(Hand hand, Vec3d pos)InteractHandler(Hand hand)PlayerInteractBlockC2SPacket(Hand hand, BlockHitResult blockHitResult)PlayerInteractItemC2SPacket(Hand hand) -
net.minecraft.network.packet.s2c.play中Hand的使用
声明为Hand的net.minecraft.network.packet.s2c.play中的字段 修饰符和类型 字段 说明 private HandOpenWrittenBookS2CPacket. hand返回Hand的net.minecraft.network.packet.s2c.play中的方法 修饰符和类型 方法 说明 HandOpenWrittenBookS2CPacket. getHand()参数类型为Hand的net.minecraft.network.packet.s2c.play中的构造器 构造器 说明 OpenWrittenBookS2CPacket(Hand hand) -
net.minecraft.server.network中Hand的使用
参数类型为Hand的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 ActionResultDemoServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultDemoServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)ActionResultServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)ActionResultServerPlayNetworkHandler.Interaction. run(ServerPlayerEntity player, Entity entity, Hand hand)voidServerPlayerEntity. swingHand(Hand hand)voidServerPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item. -
net.minecraft.util中Hand的使用
返回Hand的net.minecraft.util中的方法 修饰符和类型 方法 说明 static HandHand. valueOf(String name)返回带有指定名称的该类型的枚举常量。static Hand[]Hand. values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-