类的使用
net.minecraft.entity.player.PlayerEntity
-
-
net.minecraft.block中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.block中的方法 修饰符和类型 方法 说明 voidBeehiveBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidIceBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidTallPlantBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)voidTurtleEggBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)floatAbstractBlock.AbstractBlockState. calcBlockBreakingDelta(PlayerEntity player, BlockView world, BlockPos pos)floatAbstractBlock. calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)已过时。floatBambooBlock. calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)floatBambooSaplingBlock. calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)static voidAbstractCandleBlock. extinguish(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos)voidAbstractBlock.AbstractBlockState. onBlockBreakStart(World world, BlockPos pos, PlayerEntity player)voidAbstractBlock. onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)已过时。voidDragonEggBlock. onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)voidNoteBlock. onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)voidRedstoneOreBlock. onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)voidStairsBlock. onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)voidAbstractFireBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidBedBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidBeehiveBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidDoorBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidPistonHeadBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidShulkerBoxBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidTallPlantBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidTntBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)voidTripwireBlock. onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)protected static voidTallPlantBlock. onBreakInCreative(World world, BlockPos pos, BlockState state, PlayerEntity player)Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.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.protected abstract voidAbstractFurnaceBlock. openScreen(World world, BlockPos pos, PlayerEntity player)protected voidBlastFurnaceBlock. openScreen(World world, BlockPos pos, PlayerEntity player)protected voidFurnaceBlock. openScreen(World world, BlockPos pos, PlayerEntity player)private voidLecternBlock. openScreen(World world, BlockPos pos, PlayerEntity player)protected voidSmokerBlock. openScreen(World world, BlockPos pos, PlayerEntity player)protected voidAbstractButtonBlock. playClickSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered)protected voidTrapdoorBlock. playToggleSound(@Nullable PlayerEntity player, World world, BlockPos pos, boolean open)private static voidLecternBlock. putBook(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)static booleanLecternBlock. putBookIfAbsent(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)booleanBellBlock. ring(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean bool)protected voidAbstractFireBlock. spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state)protected voidBlock. spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state)voidBeehiveBlock. takeHoney(World world, BlockState state, BlockPos pos, @Nullable PlayerEntity player, BeehiveBlockEntity.BeeState beeState)protected static ActionResultCakeBlock. tryEat(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) -
net.minecraft.block.cauldron中PlayerEntity的使用
参数类型为PlayerEntity的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.block.entity中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.block.entity中的字段 修饰符和类型 字段 说明 private PlayerEntitySignBlockEntity. editor返回PlayerEntity的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 PlayerEntitySignBlockEntity. getEditor()参数类型为PlayerEntity的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 voidBeehiveBlockEntity. angerBees(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState)booleanAbstractFurnaceBlockEntity. canPlayerUse(PlayerEntity player)booleanBrewingStandBlockEntity. canPlayerUse(PlayerEntity player)booleanEnderChestBlockEntity. canPlayerUse(PlayerEntity player)booleanLootableContainerBlockEntity. canPlayerUse(PlayerEntity player)voidLootableContainerBlockEntity. checkLootInteraction(@Nullable PlayerEntity player)booleanLockableContainerBlockEntity. checkUnlocked(PlayerEntity player)static booleanLockableContainerBlockEntity. checkUnlocked(PlayerEntity player, ContainerLock lock, Text containerName)booleanLootableContainerBlockEntity. checkUnlocked(PlayerEntity player)voidChestStateManager. closeChest(PlayerEntity player, World world, BlockPos pos, BlockState state)@Nullable ScreenHandlerBeaconBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)ScreenHandlerLecternBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)@Nullable ScreenHandlerLockableContainerBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)@Nullable ScreenHandlerLootableContainerBlockEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)private ServerCommandSourceLecternBlockEntity. getCommandSource(@Nullable PlayerEntity player)protected abstract booleanChestStateManager. isPlayerViewing(PlayerEntity player)Determines whether the given player is currently viewing this chest.voidBarrelBlockEntity. onClose(PlayerEntity player)voidChestBlockEntity. onClose(PlayerEntity player)voidEnderChestBlockEntity. onClose(PlayerEntity player)voidShulkerBoxBlockEntity. onClose(PlayerEntity player)voidBarrelBlockEntity. onOpen(PlayerEntity player)voidChestBlockEntity. onOpen(PlayerEntity player)voidEnderChestBlockEntity. onOpen(PlayerEntity player)voidShulkerBoxBlockEntity. onOpen(PlayerEntity player)voidChestStateManager. openChest(PlayerEntity player, World world, BlockPos pos, BlockState state)booleanStructureBlockBlockEntity. openScreen(PlayerEntity player)private ItemStackLecternBlockEntity. resolveBook(ItemStack book, @Nullable PlayerEntity player)voidLecternBlockEntity. setBook(ItemStack book, @Nullable PlayerEntity player)voidSignBlockEntity. setEditor(PlayerEntity player)voidAbstractFurnaceBlockEntity. unlockLastRecipe(PlayerEntity player) -
net.minecraft.client.gui.hud中PlayerEntity的使用
返回PlayerEntity的net.minecraft.client.gui.hud中的方法 修饰符和类型 方法 说明 private PlayerEntityInGameHud. getCameraPlayer()参数类型为PlayerEntity的net.minecraft.client.gui.hud中的方法 修饰符和类型 方法 说明 private static @Nullable BlockStateInGameOverlayRenderer. getInWallBlockState(PlayerEntity player)private voidInGameHud. renderHotbarItem(int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int int2) -
net.minecraft.client.gui.screen.ingame中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.client.gui.screen.ingame中的字段 修饰符和类型 字段 说明 private PlayerEntityAnvilScreen. playerprivate PlayerEntityBookEditScreen. player参数类型为PlayerEntity的net.minecraft.client.gui.screen.ingame中的方法 修饰符和类型 方法 说明 booleanCreativeInventoryScreen.CreativeSlot. canTakeItems(PlayerEntity playerEntity)booleanCreativeInventoryScreen.LockableSlot. canTakeItems(PlayerEntity playerEntity)booleanCreativeInventoryScreen.CreativeScreenHandler. canUse(PlayerEntity player)voidCreativeInventoryScreen.CreativeSlot. onTakeItem(PlayerEntity player, ItemStack stack)ItemStackCreativeInventoryScreen.CreativeScreenHandler. transferSlot(PlayerEntity player, int index)参数类型为PlayerEntity的net.minecraft.client.gui.screen.ingame中的构造器 构造器 说明 BookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand)CreativeInventoryScreen(PlayerEntity player)CreativeScreenHandler(PlayerEntity player)InventoryScreen(PlayerEntity player) -
net.minecraft.client.network中PlayerEntity的使用
net.minecraft.client.network中PlayerEntity的子类 修饰符和类型 类 说明 classAbstractClientPlayerEntityclassClientPlayerEntityRepresents the client's own player entity.classOtherClientPlayerEntityRepresents a player entity that is present on the client but is not the client's own player.参数类型为PlayerEntity的net.minecraft.client.network中的方法 修饰符和类型 方法 说明 voidClientPlayerInteractionManager. attackEntity(PlayerEntity player, Entity target)voidClientPlayerInteractionManager. clickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity playerEntity)voidClientPlayerInteractionManager. copyAbilities(PlayerEntity player)private static ItemStackClientPlayNetworkHandler. getActiveTotemOfUndying(PlayerEntity player)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)voidClientPlayerInteractionManager. stopUsingItem(PlayerEntity player) -
net.minecraft.client.render中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.client.render中的方法 修饰符和类型 方法 说明 voidWorldRenderer. processWorldEvent(PlayerEntity source, int eventId, BlockPos pos, int data) -
net.minecraft.client.render.entity中PlayerEntity的使用
类型参数类型为PlayerEntity的net.minecraft.client.render.entity中的字段 修饰符和类型 字段 说明 private Map<String,EntityRenderer<? extends PlayerEntity>>EntityRenderDispatcher. modelRenderers返回变量类型为PlayerEntity的类型的net.minecraft.client.render.entity中的方法 修饰符和类型 方法 说明 static Map<String,EntityRenderer<? extends PlayerEntity>>EntityRenderers. reloadPlayerRenderers(EntityRendererFactory.Context ctx) -
net.minecraft.client.render.entity.feature中PlayerEntity的使用
类型参数类型为PlayerEntity的net.minecraft.client.render.entity.feature中的类 修饰符和类型 类 说明 classPlayerHeldItemFeatureRenderer<T extends PlayerEntity,M extends EntityModel<T> & ModelWithArms & ModelWithHead>classShoulderParrotFeatureRenderer<T extends PlayerEntity> -
net.minecraft.client.sound中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.client.sound中的字段 修饰符和类型 字段 说明 private PlayerEntityMinecartInsideSoundInstance. player参数类型为PlayerEntity的net.minecraft.client.sound中的构造器 构造器 说明 MinecartInsideSoundInstance(PlayerEntity player, AbstractMinecartEntity minecart, boolean bool) -
net.minecraft.client.world中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.client.world中的方法 修饰符和类型 方法 说明 voidClientWorld. playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)voidClientWorld. playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)voidClientWorld. syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
net.minecraft.entity中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.entity中的字段 修饰符和类型 字段 说明 protected @Nullable PlayerEntityLivingEntity. attackingPlayerprivate PlayerEntityExperienceOrbEntity. target类型参数类型为PlayerEntity的net.minecraft.entity中的字段 修饰符和类型 字段 说明 static EntityType<PlayerEntity>EntityType. PLAYER参数类型为PlayerEntity的net.minecraft.entity中的方法 修饰符和类型 方法 说明 TEntityType. create(ServerWorld world, @Nullable CompoundTag itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)protected intLivingEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.ActionResultEntity. interact(PlayerEntity player, Hand hand)Called when a player interacts with this entity.ActionResultEntity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)booleanEntity. isInvisibleTo(PlayerEntity player)static voidEntityType. loadFromEntityNbt(World world, @Nullable PlayerEntity player, @Nullable Entity entity, @Nullable CompoundTag itemNbt)voidEntity. onPlayerCollision(PlayerEntity player)voidExperienceOrbEntity. onPlayerCollision(PlayerEntity player)voidItemEntity. onPlayerCollision(PlayerEntity player)private intExperienceOrbEntity. repairPlayerGears(PlayerEntity player, int amount)Repairs a player's gears using the experience recursively, until the experience is all used or all gears are repaired.voidLivingEntity. setAttacking(@Nullable PlayerEntity attacking)TEntityType. spawn(ServerWorld world, @Nullable CompoundTag itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)@Nullable EntityEntityType. spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)static <T extends LivingEntity & Bucketable>
Optional<ActionResult>Bucketable. tryBucket(PlayerEntity player, Hand hand, T entity) -
net.minecraft.entity.ai.brain中PlayerEntity的使用
类型参数类型为PlayerEntity的net.minecraft.entity.ai.brain中的字段 修饰符和类型 字段 说明 static MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_PLAYER_HOLDING_WANTED_ITEMstatic MemoryModuleType<List<PlayerEntity>>MemoryModuleType. NEAREST_PLAYERSstatic MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_TARGETABLE_PLAYER_NOT_WEARING_GOLDstatic MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_VISIBLE_PLAYERstatic MemoryModuleType<PlayerEntity>MemoryModuleType. NEAREST_VISIBLE_TARGETABLE_PLAYERstatic MemoryModuleType<PlayerEntity>MemoryModuleType. TEMPTING_PLAYER -
net.minecraft.entity.ai.brain.sensor中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.entity.ai.brain.sensor中的方法 修饰符和类型 方法 说明 private booleanTemptationsSensor. test(PlayerEntity player) -
net.minecraft.entity.ai.brain.task中PlayerEntity的使用
返回变量类型为PlayerEntity的类型的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private Optional<PlayerEntity>GiveGiftsToHeroTask. getNearestPlayerIfHero(VillagerEntity villager)private Optional<PlayerEntity>TemptTask. getTemptingPlayer(PathAwareEntity entity)参数类型为PlayerEntity的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private booleanGiveGiftsToHeroTask. isCloseEnough(VillagerEntity villager, PlayerEntity player)private booleanGiveGiftsToHeroTask. isHero(PlayerEntity player) -
net.minecraft.entity.ai.goal中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.entity.ai.goal中的字段 修饰符和类型 字段 说明 private PlayerEntityWolfBegGoal. begFromprotected PlayerEntityTemptGoal. closestPlayerprivate PlayerEntityChaseBoatGoal. passenger参数类型为PlayerEntity的net.minecraft.entity.ai.goal中的方法 修饰符和类型 方法 说明 private booleanWolfBegGoal. isAttractive(PlayerEntity player) -
net.minecraft.entity.boss.dragon.phase中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.entity.boss.dragon.phase中的方法 修饰符和类型 方法 说明 voidAbstractPhase. crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)voidHoldingPatternPhase. crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)voidPhase. crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)private voidHoldingPatternPhase. strafePlayer(PlayerEntity player) -
net.minecraft.entity.damage中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.entity.damage中的方法 修饰符和类型 方法 说明 static DamageSourceDamageSource. player(PlayerEntity attacker) -
net.minecraft.entity.decoration中PlayerEntity的使用
参数类型为PlayerEntity的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中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.entity.mob中的字段 修饰符和类型 字段 说明 private PlayerEntityEndermanEntity.TeleportTowardsPlayerGoal. targetPlayer类型参数类型为PlayerEntity的net.minecraft.entity.mob中的字段 修饰符和类型 字段 说明 private DisableableFollowTargetGoal<PlayerEntity>WitchEntity. attackPlayerGoal返回变量类型为PlayerEntity的类型的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 static Optional<PlayerEntity>PiglinBrain. getNearestDetectedPlayer(AbstractPiglinEntity piglin)参数类型为PlayerEntity的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 booleanAmbientEntity. canBeLeashedBy(PlayerEntity player)booleanHoglinEntity. canBeLeashedBy(PlayerEntity player)booleanMobEntity. canBeLeashedBy(PlayerEntity player)booleanWaterCreatureEntity. canBeLeashedBy(PlayerEntity player)booleanZoglinEntity. canBeLeashedBy(PlayerEntity player)private voidMobEntity. disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack)private static voidPiglinBrain. dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> list)default voidAngerable. forgive(PlayerEntity player)protected intHoglinEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intMobEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intPiglinEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intWaterCreatureEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intZombieEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.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)booleanHostileEntity. isAngryAt(PlayerEntity player)booleanZombifiedPiglinEntity. isAngryAt(PlayerEntity player)private booleanEndermanEntity. isPlayerStaring(PlayerEntity player)static voidPiglinBrain. onGuardedBlockInteracted(PlayerEntity player, boolean blockOpen)voidSlimeEntity. onPlayerCollision(PlayerEntity player)protected voidMobEntity. onPlayerSpawnedChild(PlayerEntity player, MobEntity child)static ActionResultPiglinBrain. playerInteract(PiglinEntity piglin, PlayerEntity player, Hand hand)voidAngerable. setAttacking(@Nullable PlayerEntity attacking) -
net.minecraft.entity.passive中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.entity.passive中的字段 修饰符和类型 字段 说明 private PlayerEntityDolphinEntity.SwimWithPlayerGoal. closestPlayerprivate @Nullable PlayerEntityMerchantEntity. customerprivate @Nullable PlayerEntityVillagerEntity. lastCustomerprivate PlayerEntityCatEntity.SleepWithOwnerGoal. ownerprivate @Nullable PlayerEntityCatEntity.TemptGoal. player类型参数类型为PlayerEntity的net.minecraft.entity.passive中的字段 修饰符和类型 字段 说明 private CatEntity.CatFleeGoal<PlayerEntity>CatEntity. fleeGoalprivate OcelotEntity.FleeGoal<PlayerEntity>OcelotEntity. fleeGoal返回PlayerEntity的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 @Nullable PlayerEntityMerchantEntity. getCurrentCustomer()参数类型为PlayerEntity的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 private voidVillagerEntity. beginTradeWith(PlayerEntity customer)booleanHorseBaseEntity. bondWithPlayer(PlayerEntity player)static voidAxolotlEntity. buffPlayer(PlayerEntity player)booleanAxolotlEntity. canBeLeashedBy(PlayerEntity player)booleanDolphinEntity. canBeLeashedBy(PlayerEntity player)booleanMerchantEntity. canBeLeashedBy(PlayerEntity player)booleanPandaEntity. canBeLeashedBy(PlayerEntity player)booleanTameableEntity. canBeLeashedBy(PlayerEntity player)booleanTurtleEntity. canBeLeashedBy(PlayerEntity player)booleanWolfEntity. canBeLeashedBy(PlayerEntity player)protected 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)intVillagerEntity. getReputation(PlayerEntity player)protected intAnimalEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected intChickenEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.ActionResultHorseBaseEntity. interactHorse(PlayerEntity player, ItemStack stack)ActionResultAbstractDonkeyEntity. interactMob(PlayerEntity player, Hand hand)ActionResultAnimalEntity. interactMob(PlayerEntity player, Hand hand)ActionResultAxolotlEntity. interactMob(PlayerEntity player, Hand hand)ActionResultCatEntity. interactMob(PlayerEntity player, Hand hand)ActionResultCowEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultDolphinEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultFishEntity. interactMob(PlayerEntity player, Hand hand)ActionResultGoatEntity. interactMob(PlayerEntity player, Hand hand)ActionResultHorseEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultIronGolemEntity. interactMob(PlayerEntity player, Hand hand)ActionResultMooshroomEntity. interactMob(PlayerEntity player, Hand hand)ActionResultOcelotEntity. interactMob(PlayerEntity player, Hand hand)ActionResultPandaEntity. interactMob(PlayerEntity player, Hand hand)ActionResultParrotEntity. interactMob(PlayerEntity player, Hand hand)ActionResultPigEntity. interactMob(PlayerEntity player, Hand hand)ActionResultSheepEntity. interactMob(PlayerEntity player, Hand hand)protected ActionResultSnowGolemEntity. interactMob(PlayerEntity player, Hand hand)ActionResultStriderEntity. interactMob(PlayerEntity player, Hand hand)ActionResultVillagerEntity. interactMob(PlayerEntity player, Hand hand)ActionResultWanderingTraderEntity. interactMob(PlayerEntity player, Hand hand)ActionResultWolfEntity. interactMob(PlayerEntity player, Hand hand)voidAnimalEntity. lovePlayer(@Nullable PlayerEntity player)voidPufferfishEntity. onPlayerCollision(PlayerEntity player)protected voidFoxEntity. onPlayerSpawnedChild(PlayerEntity player, MobEntity child)voidHorseBaseEntity. openInventory(PlayerEntity player)private voidVillagerEntity. prepareOffersFor(PlayerEntity player)protected voidHorseBaseEntity. putPlayerOnBack(PlayerEntity player)protected voidTraderLlamaEntity. putPlayerOnBack(PlayerEntity player)protected booleanHorseBaseEntity. receiveFood(PlayerEntity player, ItemStack item)protected booleanLlamaEntity. receiveFood(PlayerEntity player, ItemStack item)voidMerchantEntity. setCurrentCustomer(@Nullable PlayerEntity customer)voidVillagerEntity. setCurrentCustomer(@Nullable PlayerEntity customer)voidTameableEntity. setOwner(PlayerEntity player) -
net.minecraft.entity.player中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.entity.player中的字段 修饰符和类型 字段 说明 PlayerEntityPlayerInventory. player参数类型为PlayerEntity的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 booleanPlayerInventory. canPlayerUse(PlayerEntity player)protected intPlayerEntity. getXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.booleanPlayerEntity. shouldDamagePlayer(PlayerEntity player)voidHungerManager. update(PlayerEntity player)参数类型为PlayerEntity的net.minecraft.entity.player中的构造器 构造器 说明 PlayerInventory(PlayerEntity player) -
net.minecraft.entity.projectile中PlayerEntity的使用
返回PlayerEntity的net.minecraft.entity.projectile中的方法 修饰符和类型 方法 说明 @Nullable PlayerEntityFishingBobberEntity. getPlayerOwner()参数类型为PlayerEntity的net.minecraft.entity.projectile中的方法 修饰符和类型 方法 说明 voidPersistentProjectileEntity. onPlayerCollision(PlayerEntity player)voidTridentEntity. onPlayerCollision(PlayerEntity player)private booleanFishingBobberEntity. removeIfInvalid(PlayerEntity player)protected booleanPersistentProjectileEntity. tryPickup(PlayerEntity player)protected booleanTridentEntity. tryPickup(PlayerEntity player)参数类型为PlayerEntity的net.minecraft.entity.projectile中的构造器 构造器 说明 FishingBobberEntity(PlayerEntity thrower, World world, int lureLevel, int luckOfTheSeaLevel) -
net.minecraft.entity.vehicle中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.entity.vehicle中的方法 修饰符和类型 方法 说明 booleanStorageMinecartEntity. canPlayerUse(PlayerEntity player)@Nullable ScreenHandlerStorageMinecartEntity. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)voidStorageMinecartEntity. generateLoot(@Nullable PlayerEntity player)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.inventory中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 booleanCraftingInventory. canPlayerUse(PlayerEntity player)booleanCraftingResultInventory. canPlayerUse(PlayerEntity player)booleanDoubleInventory. canPlayerUse(PlayerEntity player)booleanEnderChestInventory. canPlayerUse(PlayerEntity player)booleanInventory. canPlayerUse(PlayerEntity player)booleanSimpleInventory. canPlayerUse(PlayerEntity player)voidDoubleInventory. onClose(PlayerEntity player)voidEnderChestInventory. onClose(PlayerEntity player)default voidInventory. onClose(PlayerEntity player)voidDoubleInventory. onOpen(PlayerEntity player)voidEnderChestInventory. onOpen(PlayerEntity player)default voidInventory. onOpen(PlayerEntity player) -
net.minecraft.item中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.item中的字段 修饰符和类型 字段 说明 private @Nullable PlayerEntityItemUsageContext. player返回PlayerEntity的net.minecraft.item中的方法 修饰符和类型 方法 说明 @Nullable PlayerEntityItemUsageContext. getPlayer()参数类型为PlayerEntity的net.minecraft.item中的方法 修饰符和类型 方法 说明 static ActionResultLeadItem. attachHeldMobsToBlock(PlayerEntity player, World world, BlockPos pos)booleanDebugStickItem. canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)Checks if a player can break a block while holding the item.booleanItem. canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)Checks if a player can break a block while holding the item.booleanSwordItem. canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)Checks if a player can break a block while holding the item.booleanTridentItem. canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)Checks if a player can break a block while holding the item.protected booleanDecorationItem. canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)protected booleanItemFrameItem. canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)static TypedActionResult<ItemStack>ItemUsage. consumeHeldItem(World world, PlayerEntity player, Hand hand)@Nullable Packet<?>FilledMapItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.@Nullable Packet<?>NetworkSyncedItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.private static booleanBundleItem. dropAllBundledItems(ItemStack stack, PlayerEntity player)static ItemStackItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)static ItemStackItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)protected ItemStackGlassBottleItem. fill(ItemStack stack, PlayerEntity player, ItemStack outputStack)static ItemStackBucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)List<Text>ItemStack. getTooltip(@Nullable PlayerEntity player, TooltipContext context)private static StringWrittenBookItem. method_33826(@Nullable ServerCommandSource serverCommandSource, @Nullable PlayerEntity playerEntity, String string)booleanBundleItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItemStack. onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)voidFilledMapItem. onCraft(ItemStack stack, World world, PlayerEntity player)Called when a player acquires the item by crafting, smelting, smithing, etc.voidItem. onCraft(ItemStack stack, World world, PlayerEntity player)Called when a player acquires the item by crafting, smelting, smithing, etc.voidItemStack. onCraft(World world, PlayerEntity player, int amount)voidBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)voidEntityBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)default voidFluidModificationItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)booleanBundleItem. onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)booleanItem. onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)booleanItemStack. onStackClicked(Slot slot, ClickType clickType, PlayerEntity player)booleanBucketItem. placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult)booleanFluidModificationItem. placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult)booleanPowderSnowBucketItem. placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult)protected voidBucketItem. playEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos)protected voidEntityBucketItem. playEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos)voidItemStack. postHit(LivingEntity target, PlayerEntity attacker)voidItemStack. postMine(World world, BlockState state, BlockPos pos, PlayerEntity miner)protected booleanBlockItem. postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)protected booleanSignItem. postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)protected static BlockHitResultItem. raycast(World world, PlayerEntity player, RaycastContext.FluidHandling fluidHandling)static booleanWrittenBookItem. resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player)private static voidDebugStickItem. sendMessage(PlayerEntity player, Text message)Optional<MobEntity>SpawnEggItem. spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack)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.private voidDebugStickItem. use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)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)static booleanBlockItem. writeTagToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack)参数类型为PlayerEntity的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.item.map中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.item.map中的字段 修饰符和类型 字段 说明 PlayerEntityMapState.PlayerUpdateTracker. player类型参数类型为PlayerEntity的net.minecraft.item.map中的字段 修饰符和类型 字段 说明 private Map<PlayerEntity,MapState.PlayerUpdateTracker>MapState. updateTrackersByPlayer参数类型为PlayerEntity的net.minecraft.item.map中的方法 修饰符和类型 方法 说明 @Nullable Packet<?>MapState. getPlayerMarkerPacket(int id, PlayerEntity player)MapState.PlayerUpdateTrackerMapState. getPlayerSyncData(PlayerEntity player)voidMapState. update(PlayerEntity player, ItemStack stack)参数类型为PlayerEntity的net.minecraft.item.map中的构造器 构造器 说明 PlayerUpdateTracker(PlayerEntity player) -
net.minecraft.loot.context中PlayerEntity的使用
类型参数类型为PlayerEntity的net.minecraft.loot.context中的字段 修饰符和类型 字段 说明 static LootContextParameter<PlayerEntity>LootContextParameters. LAST_DAMAGE_PLAYER -
net.minecraft.network.packet.s2c.play中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.network.packet.s2c.play中的构造器 构造器 说明 PlayerSpawnS2CPacket(PlayerEntity player) -
net.minecraft.recipe中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 default voidRecipeUnlocker. unlockLastRecipe(PlayerEntity player) -
net.minecraft.screen中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.screen中的字段 修饰符和类型 字段 说明 private PlayerEntityPlayerScreenHandler. ownerprivate PlayerEntityCraftingScreenHandler. playerprotected PlayerEntityForgingScreenHandler. player参数类型为PlayerEntity的net.minecraft.screen中的方法 修饰符和类型 方法 说明 protected booleanAnvilScreenHandler. canTakeOutput(PlayerEntity player, boolean present)protected abstract booleanForgingScreenHandler. canTakeOutput(PlayerEntity player, boolean present)protected booleanSmithingScreenHandler. canTakeOutput(PlayerEntity player, boolean present)booleanAbstractFurnaceScreenHandler. canUse(PlayerEntity player)booleanBeaconScreenHandler. canUse(PlayerEntity player)booleanBrewingStandScreenHandler. canUse(PlayerEntity player)booleanCartographyTableScreenHandler. canUse(PlayerEntity player)booleanCraftingScreenHandler. canUse(PlayerEntity player)booleanEnchantmentScreenHandler. canUse(PlayerEntity player)booleanForgingScreenHandler. canUse(PlayerEntity player)booleanGeneric3x3ContainerScreenHandler. canUse(PlayerEntity player)booleanGenericContainerScreenHandler. canUse(PlayerEntity player)booleanGrindstoneScreenHandler. canUse(PlayerEntity player)booleanHopperScreenHandler. canUse(PlayerEntity player)booleanHorseScreenHandler. canUse(PlayerEntity player)booleanLecternScreenHandler. canUse(PlayerEntity player)booleanLoomScreenHandler. canUse(PlayerEntity player)booleanMerchantScreenHandler. canUse(PlayerEntity player)booleanPlayerScreenHandler. canUse(PlayerEntity player)abstract booleanScreenHandler. canUse(PlayerEntity player)protected static booleanScreenHandler. canUse(ScreenHandlerContext context, PlayerEntity player, Block block)booleanShulkerBoxScreenHandler. canUse(PlayerEntity player)booleanStonecutterScreenHandler. canUse(PlayerEntity player)voidBeaconScreenHandler. close(PlayerEntity player)voidCartographyTableScreenHandler. close(PlayerEntity player)voidCraftingScreenHandler. close(PlayerEntity player)voidEnchantmentScreenHandler. close(PlayerEntity player)voidForgingScreenHandler. close(PlayerEntity player)voidGeneric3x3ContainerScreenHandler. close(PlayerEntity player)voidGenericContainerScreenHandler. close(PlayerEntity player)voidGrindstoneScreenHandler. close(PlayerEntity player)voidHopperScreenHandler. close(PlayerEntity player)voidHorseScreenHandler. close(PlayerEntity player)voidLoomScreenHandler. close(PlayerEntity player)voidMerchantScreenHandler. close(PlayerEntity player)voidPlayerScreenHandler. close(PlayerEntity player)voidScreenHandler. close(PlayerEntity player)voidShulkerBoxScreenHandler. close(PlayerEntity player)voidStonecutterScreenHandler. close(PlayerEntity player)@Nullable ScreenHandlerScreenHandlerFactory. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)ScreenHandlerSimpleNamedScreenHandlerFactory. createMenu(int syncId, PlayerInventory inv, PlayerEntity player)protected voidScreenHandler. dropInventory(PlayerEntity player, Inventory inventory)private voidScreenHandler. internalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)The actual logic that handles a slot click.booleanEnchantmentScreenHandler. onButtonClick(PlayerEntity player, int id)booleanLecternScreenHandler. onButtonClick(PlayerEntity player, int id)booleanLoomScreenHandler. onButtonClick(PlayerEntity player, int id)booleanScreenHandler. onButtonClick(PlayerEntity player, int id)booleanStonecutterScreenHandler. onButtonClick(PlayerEntity player, int id)voidScreenHandler. onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)Performs a slot click.voidBrewingStandScreenHandler.PotionSlot. onTakeItem(PlayerEntity player, ItemStack stack)protected voidAnvilScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)protected abstract voidForgingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)protected voidSmithingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)static booleanScreenHandler. shouldQuickCraftContinue(int stage, PlayerEntity player)ItemStackAbstractFurnaceScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBeaconScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBrewingStandScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCartographyTableScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCraftingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackEnchantmentScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackForgingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGeneric3x3ContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGenericContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGrindstoneScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHopperScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHorseScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackLoomScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackMerchantScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackPlayerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackShulkerBoxScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackStonecutterScreenHandler. transferSlot(PlayerEntity player, int index)protected static voidCraftingScreenHandler. updateResult(ScreenHandler screenHandler, World world, PlayerEntity player, CraftingInventory craftingInventory, CraftingResultInventory resultInventory)参数类型为PlayerEntity的net.minecraft.screen中的构造器 构造器 说明 PlayerScreenHandler(PlayerInventory inventory, boolean onServer, PlayerEntity owner) -
net.minecraft.screen.slot中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.screen.slot中的字段 修饰符和类型 字段 说明 private PlayerEntityCraftingResultSlot. playerprivate PlayerEntityFurnaceOutputSlot. playerprivate PlayerEntityTradeOutputSlot. player参数类型为PlayerEntity的net.minecraft.screen.slot中的方法 修饰符和类型 方法 说明 booleanSlot. canTakeItems(PlayerEntity playerEntity)booleanSlot. canTakePartial(PlayerEntity player)voidCraftingResultSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidFurnaceOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidTradeOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)ItemStackSlot. takeStackRange(int min, int max, PlayerEntity player)Optional<ItemStack>Slot. tryTakeStackRange(int min, int max, PlayerEntity player)参数类型为PlayerEntity的net.minecraft.screen.slot中的构造器 构造器 说明 CraftingResultSlot(PlayerEntity player, CraftingInventory input, Inventory inventory, int index, int x, int y)FurnaceOutputSlot(PlayerEntity player, Inventory inventory, int index, int x, int y)TradeOutputSlot(PlayerEntity player, Merchant merchant, MerchantInventory merchantInventory, int index, int x, int y) -
net.minecraft.server中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.server中的方法 修饰符和类型 方法 说明 ServerStatHandlerPlayerManager. createStatHandler(PlayerEntity player)booleanMinecraftServer. isSpawnProtected(ServerWorld world, BlockPos pos, PlayerEntity player)voidPlayerManager. sendToAround(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet)voidPlayerManager. sendToOtherTeams(PlayerEntity source, Text message)voidPlayerManager. sendToTeam(PlayerEntity source, Text message) -
net.minecraft.server.dedicated中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.server.dedicated中的方法 修饰符和类型 方法 说明 booleanMinecraftDedicatedServer. isSpawnProtected(ServerWorld world, BlockPos pos, PlayerEntity player) -
net.minecraft.server.network中PlayerEntity的使用
net.minecraft.server.network中PlayerEntity的子类 修饰符和类型 类 说明 classServerPlayerEntity参数类型为PlayerEntity的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 booleanServerPlayerEntity. shouldDamagePlayer(PlayerEntity player) -
net.minecraft.server.world中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.server.world中的方法 修饰符和类型 方法 说明 booleanServerWorld. canPlayerModifyAt(PlayerEntity player, BlockPos pos)voidServerWorld. playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)voidServerWorld. playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)voidServerWorld. syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
net.minecraft.stat中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.stat中的方法 修饰符和类型 方法 说明 voidStatHandler. increaseStat(PlayerEntity player, Stat<?> stat, int value)voidServerStatHandler. setStat(PlayerEntity player, Stat<?> stat, int value)voidStatHandler. setStat(PlayerEntity player, Stat<?> stat, int value) -
net.minecraft.test中PlayerEntity的使用
返回PlayerEntity的net.minecraft.test中的方法 修饰符和类型 方法 说明 PlayerEntityTestContext. createMockPlayer() -
net.minecraft.village中PlayerEntity的使用
声明为PlayerEntity的net.minecraft.village中的字段 修饰符和类型 字段 说明 private PlayerEntitySimpleMerchant. player返回PlayerEntity的net.minecraft.village中的方法 修饰符和类型 方法 说明 @Nullable PlayerEntityMerchant. getCurrentCustomer()PlayerEntitySimpleMerchant. getCurrentCustomer()参数类型为PlayerEntity的net.minecraft.village中的方法 修饰符和类型 方法 说明 booleanMerchantInventory. canPlayerUse(PlayerEntity player)default voidMerchant. sendOffers(PlayerEntity player, Text test, int levelProgress)voidMerchant. setCurrentCustomer(@Nullable PlayerEntity customer)voidSimpleMerchant. setCurrentCustomer(@Nullable PlayerEntity customer)参数类型为PlayerEntity的net.minecraft.village中的构造器 构造器 说明 SimpleMerchant(PlayerEntity player) -
net.minecraft.village.raid中PlayerEntity的使用
参数类型为PlayerEntity的net.minecraft.village.raid中的方法 修饰符和类型 方法 说明 voidRaid. start(PlayerEntity player) -
net.minecraft.world中PlayerEntity的使用
返回PlayerEntity的net.minecraft.world中的方法 修饰符和类型 方法 说明 @Nullable PlayerEntityChunkRegion. getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate)default @Nullable PlayerEntityEntityView. getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative)default @Nullable PlayerEntityEntityView. getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate)default @Nullable PlayerEntityEntityView. getClosestPlayer(TargetPredicate targetPredicate, double x, double y, double z)default @Nullable PlayerEntityEntityView. getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity)default @Nullable PlayerEntityEntityView. getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)default @Nullable PlayerEntityEntityView. getClosestPlayer(Entity entity, double maxDistance)default @Nullable PlayerEntityEntityView. getPlayerByUuid(UUID uuid)返回变量类型为PlayerEntity的类型的net.minecraft.world中的方法 修饰符和类型 方法 说明 List<PlayerEntity>ChunkRegion. getPlayers()List<? extends PlayerEntity>EntityView. getPlayers()default List<PlayerEntity>EntityView. getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box)参数类型为PlayerEntity的net.minecraft.world中的方法 修饰符和类型 方法 说明 booleanWorld. canPlayerModifyAt(PlayerEntity player, BlockPos pos)ActionResultCommandBlockExecutor. interact(PlayerEntity player)@Nullable CompoundTagWorldSaveHandler. loadPlayerData(PlayerEntity player)voidChunkRegion. playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)abstract voidWorld. playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch)voidWorld. playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)voidWorldAccess. playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch)abstract voidWorld. playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)voidWorldSaveHandler. savePlayerData(PlayerEntity player)voidChunkRegion. syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data)voidWorldAccess. syncWorldEvent(@Nullable PlayerEntity player, int eventId, BlockPos pos, int data) -
net.minecraft.world.explosion中PlayerEntity的使用
类型参数类型为PlayerEntity的net.minecraft.world.explosion中的字段 修饰符和类型 字段 说明 private Map<PlayerEntity,Vec3d>Explosion. affectedPlayers返回变量类型为PlayerEntity的类型的net.minecraft.world.explosion中的方法 修饰符和类型 方法 说明 Map<PlayerEntity,Vec3d>Explosion. getAffectedPlayers()
-