类的使用
net.minecraft.server.network.ServerPlayerEntity
-
-
net.minecraft.advancement中ServerPlayerEntity的使用
声明为ServerPlayerEntity的net.minecraft.advancement中的字段 修饰符和类型 字段 说明 private ServerPlayerEntityPlayerAdvancementTracker. owner参数类型为ServerPlayerEntity的net.minecraft.advancement中的方法 修饰符和类型 方法 说明 voidAdvancementRewards. apply(ServerPlayerEntity player)voidPlayerAdvancementTracker. sendUpdate(ServerPlayerEntity player)voidPlayerAdvancementTracker. setOwner(ServerPlayerEntity owner)参数类型为ServerPlayerEntity的net.minecraft.advancement中的构造器 构造器 说明 PlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, File advancementFile, ServerPlayerEntity owner) -
net.minecraft.advancement.criterion中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.advancement.criterion中的方法 修饰符和类型 方法 说明 voidVillagerTradeCriterion. handle(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack)booleanEffectsChangedCriterion.Conditions. matches(ServerPlayerEntity player)booleanEntityHurtPlayerCriterion.Conditions. matches(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)booleanLevitationCriterion.Conditions. matches(ServerPlayerEntity player, Vec3d startPos, int duration)booleanPlayerHurtEntityCriterion.Conditions. matches(ServerPlayerEntity player, LootContext entityContext, DamageSource source, float dealt, float taken, boolean blocked)protected voidAbstractCriterion. test(ServerPlayerEntity player, Predicate<T> tester)voidBeeNestDestroyedCriterion. test(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount)voidItemUsedOnBlockCriterion. test(ServerPlayerEntity player, BlockPos pos, ItemStack stack)booleanOnKilledCriterion.Conditions. test(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow)voidPlayerGeneratesContainerLootCriterion. test(ServerPlayerEntity player, Identifier id)voidPlayerInteractedWithEntityCriterion. test(ServerPlayerEntity player, ItemStack stack, Entity entity)voidSlideDownBlockCriterion. test(ServerPlayerEntity player, BlockState state)booleanThrownItemPickedUpByEntityCriterion.Conditions. test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext)voidBredAnimalsCriterion. trigger(ServerPlayerEntity player, AnimalEntity parent, AnimalEntity partner, @Nullable PassiveEntity child)voidBrewedPotionCriterion. trigger(ServerPlayerEntity player, Potion potion)voidChangedDimensionCriterion. trigger(ServerPlayerEntity player, RegistryKey<World> from, RegistryKey<World> to)voidChanneledLightningCriterion. trigger(ServerPlayerEntity player, Collection<? extends Entity> victims)voidConstructBeaconCriterion. trigger(ServerPlayerEntity player, int level)voidConsumeItemCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidCuredZombieVillagerCriterion. trigger(ServerPlayerEntity player, ZombieEntity zombie, VillagerEntity villager)voidEffectsChangedCriterion. trigger(ServerPlayerEntity player)voidEnchantedItemCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int levels)voidEnterBlockCriterion. trigger(ServerPlayerEntity player, BlockState state)voidEntityHurtPlayerCriterion. trigger(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)voidFilledBucketCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidFishingRodHookedCriterion. trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots)voidInventoryChangedCriterion. trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack)private voidInventoryChangedCriterion. trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)voidItemDurabilityChangedCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int durability)voidKilledByCrossbowCriterion. trigger(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities)voidLevitationCriterion. trigger(ServerPlayerEntity player, Vec3d startPos, int duration)voidLocationArrivalCriterion. trigger(ServerPlayerEntity player)voidNetherTravelCriterion. trigger(ServerPlayerEntity player, Vec3d enteredPos)voidOnKilledCriterion. trigger(ServerPlayerEntity player, Entity entity, DamageSource killingDamage)voidPlacedBlockCriterion. trigger(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack)voidPlayerHurtEntityCriterion. trigger(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked)voidRecipeUnlockedCriterion. trigger(ServerPlayerEntity player, Recipe<?> recipe)voidShotCrossbowCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidSummonedEntityCriterion. trigger(ServerPlayerEntity player, Entity entity)voidTameAnimalCriterion. trigger(ServerPlayerEntity player, AnimalEntity entity)voidTargetHitCriterion. trigger(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength)voidThrownItemPickedUpByEntityCriterion. trigger(ServerPlayerEntity player, ItemStack stack, Entity entity)voidTickCriterion. trigger(ServerPlayerEntity player)voidUsedEnderEyeCriterion. trigger(ServerPlayerEntity player, BlockPos strongholdPos)voidUsedTotemCriterion. trigger(ServerPlayerEntity player, ItemStack stack) -
net.minecraft.block.entity中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 voidAbstractFurnaceBlockEntity. dropExperienceForRecipesUsed(ServerPlayerEntity player)ServerCommandSourceSignBlockEntity. getCommandSource(@Nullable ServerPlayerEntity player)booleanSignBlockEntity. onActivate(ServerPlayerEntity player) -
net.minecraft.command中ServerPlayerEntity的使用
返回ServerPlayerEntity的net.minecraft.command中的方法 修饰符和类型 方法 说明 ServerPlayerEntityEntitySelector. getPlayer(ServerCommandSource serverCommandSource)返回变量类型为ServerPlayerEntity的类型的net.minecraft.command中的方法 修饰符和类型 方法 说明 List<ServerPlayerEntity>EntitySelector. getPlayers(ServerCommandSource serverCommandSource) -
net.minecraft.command.argument中ServerPlayerEntity的使用
返回ServerPlayerEntity的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 static ServerPlayerEntityEntityArgumentType. getPlayer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)返回变量类型为ServerPlayerEntity的类型的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 static Collection<ServerPlayerEntity>EntityArgumentType. getOptionalPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)static Collection<ServerPlayerEntity>EntityArgumentType. getPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
net.minecraft.entity中ServerPlayerEntity的使用
声明为ServerPlayerEntity的net.minecraft.entity中的字段 修饰符和类型 字段 说明 private @Nullable ServerPlayerEntityLightningEntity. channeler返回ServerPlayerEntity的net.minecraft.entity中的方法 修饰符和类型 方法 说明 @Nullable ServerPlayerEntityLightningEntity. getChanneler()参数类型为ServerPlayerEntity的net.minecraft.entity中的方法 修饰符和类型 方法 说明 booleanEntity. canBeSpectated(ServerPlayerEntity spectator)voidEntity. onStartedTrackingBy(ServerPlayerEntity player)voidEntity. onStoppedTrackingBy(ServerPlayerEntity player)voidLightningEntity. setChanneler(@Nullable ServerPlayerEntity channeler) -
net.minecraft.entity.ai.goal中ServerPlayerEntity的使用
声明为ServerPlayerEntity的net.minecraft.entity.ai.goal中的字段 修饰符和类型 字段 说明 private ServerPlayerEntitySitOnOwnerShoulderGoal. owner -
net.minecraft.entity.boss中ServerPlayerEntity的使用
类型参数类型为ServerPlayerEntity的net.minecraft.entity.boss中的字段 修饰符和类型 字段 说明 private Set<ServerPlayerEntity>ServerBossBar. playersprivate Set<ServerPlayerEntity>ServerBossBar. unmodifiablePlayers返回变量类型为ServerPlayerEntity的类型的net.minecraft.entity.boss中的方法 修饰符和类型 方法 说明 Collection<ServerPlayerEntity>ServerBossBar. getPlayers()参数类型为ServerPlayerEntity的net.minecraft.entity.boss中的方法 修饰符和类型 方法 说明 voidCommandBossBar. addPlayer(ServerPlayerEntity player)voidServerBossBar. addPlayer(ServerPlayerEntity player)voidBossBarManager. onPlayerConnect(ServerPlayerEntity player)voidCommandBossBar. onPlayerConnect(ServerPlayerEntity player)voidBossBarManager. onPlayerDisconnect(ServerPlayerEntity player)voidCommandBossBar. onPlayerDisconnect(ServerPlayerEntity player)voidWitherEntity. onStartedTrackingBy(ServerPlayerEntity player)voidWitherEntity. onStoppedTrackingBy(ServerPlayerEntity player)voidCommandBossBar. removePlayer(ServerPlayerEntity player)voidServerBossBar. removePlayer(ServerPlayerEntity player)类型变量类型为ServerPlayerEntity的net.minecraft.entity.boss中的方法参数 修饰符和类型 方法 说明 booleanCommandBossBar. addPlayers(Collection<ServerPlayerEntity> players) -
net.minecraft.entity.passive中ServerPlayerEntity的使用
返回ServerPlayerEntity的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 @Nullable ServerPlayerEntityAnimalEntity. getLovingPlayer()参数类型为ServerPlayerEntity的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 booleanTameableShoulderEntity. mountOnto(ServerPlayerEntity player) -
net.minecraft.item中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.item中的方法 修饰符和类型 方法 说明 booleanItemStack. damage(int amount, Random random, @Nullable ServerPlayerEntity player) -
net.minecraft.network.packet.s2c.play中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.network.packet.s2c.play中的构造器 构造器 说明 PlayerListS2CPacket(PlayerListS2CPacket.Action action, ServerPlayerEntity[] players)类型变量类型为ServerPlayerEntity的net.minecraft.network.packet.s2c.play中的构造器参数 构造器 说明 PlayerListS2CPacket(PlayerListS2CPacket.Action action, Collection<ServerPlayerEntity> players) -
net.minecraft.predicate中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.predicate中的方法 修饰符和类型 方法 说明 booleanDamagePredicate. test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) -
net.minecraft.predicate.entity中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.predicate.entity中的方法 修饰符和类型 方法 说明 static LootContextEntityPredicate. createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)booleanDamageSourcePredicate. test(ServerPlayerEntity player, DamageSource damageSource)booleanEntityPredicate. test(ServerPlayerEntity player, @Nullable Entity entity) -
net.minecraft.recipe中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.recipe中的方法 修饰符和类型 方法 说明 voidInputSlotFiller. fillInputSlots(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll)default booleanRecipeUnlocker. shouldCraftRecipe(World world, ServerPlayerEntity player, Recipe<?> recipe) -
net.minecraft.screen中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.screen中的方法 修饰符和类型 方法 说明 voidAbstractRecipeScreenHandler. fillInputSlots(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player) -
net.minecraft.server中ServerPlayerEntity的使用
类型参数类型为ServerPlayerEntity的net.minecraft.server中的字段 修饰符和类型 字段 说明 private Map<UUID,ServerPlayerEntity>PlayerManager. playerMapprivate List<ServerPlayerEntity>PlayerManager. players返回ServerPlayerEntity的net.minecraft.server中的方法 修饰符和类型 方法 说明 ServerPlayerEntityPlayerManager. createPlayer(com.mojang.authlib.GameProfile profile)@Nullable ServerPlayerEntityPlayerManager. getPlayer(String name)@Nullable ServerPlayerEntityPlayerManager. getPlayer(UUID uuid)ServerPlayerEntityPlayerManager. respawnPlayer(ServerPlayerEntity player, boolean alive)返回变量类型为ServerPlayerEntity的类型的net.minecraft.server中的方法 修饰符和类型 方法 说明 List<ServerPlayerEntity>PlayerManager. getPlayerList()Gets a list of all players on a Minecraft server.List<ServerPlayerEntity>PlayerManager. getPlayersByIp(String ip)类型变量类型为ServerPlayerEntity的net.minecraft.server中的方法参数 修饰符和类型 方法 说明 voidPlayerManager. broadcast(Text serverMessage, Function<ServerPlayerEntity,Text> playerMessageFactory, MessageType playerMessageType, UUID sender) -
net.minecraft.server.command中ServerPlayerEntity的使用
类型参数类型为ServerPlayerEntity的net.minecraft.server.command中的字段 修饰符和类型 字段 说明 BiConsumer<ServerPlayerEntity,Integer>ExperienceCommand.Component. adderprivate ToIntFunction<ServerPlayerEntity>ExperienceCommand.Component. getterBiPredicate<ServerPlayerEntity,Integer>ExperienceCommand.Component. setter返回ServerPlayerEntity的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 ServerPlayerEntityServerCommandSource. getPlayer()Gets the player from this command source or throws a command syntax exception if this command source is not a player.参数类型为ServerPlayerEntity的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static intSpectateCommand. execute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player)private static intExperienceCommand. executeQuery(ServerCommandSource source, ServerPlayerEntity player, ExperienceCommand.Component component)private static @Nullable RaidRaidCommand. getRaid(ServerPlayerEntity player)private static ScoreboardPlayerScoreTriggerCommand. getScore(ServerPlayerEntity player, ScoreboardObjective objective)intAdvancementCommand.Operation. processAll(ServerPlayerEntity player, Iterable<Advancement> advancements)protected abstract booleanAdvancementCommand.Operation. processEach(ServerPlayerEntity player, Advancement advancement)protected abstract booleanAdvancementCommand.Operation. processEachCriterion(ServerPlayerEntity player, Advancement advancement, String criterion)voidCommandManager. sendCommandTree(ServerPlayerEntity player)private static voidGameModeCommand. setGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)类型变量类型为ServerPlayerEntity的net.minecraft.server.command中的方法参数 修饰符和类型 方法 说明 private static intClearCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount)private static intGameModeCommand. execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)private static intGiveCommand. execute(ServerCommandSource source, ItemStackArgument item, Collection<ServerPlayerEntity> targets, int count)private static intKickCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text reason)private static intListCommand. execute(ServerCommandSource source, Function<ServerPlayerEntity,Text> nameProvider)private static intMessageCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text message)private static intParticleCommand. execute(ServerCommandSource source, ParticleEffect parameters, Vec3d pos, Vec3d delta, float speed, int count, boolean force, Collection<ServerPlayerEntity> viewers)private static intPlaySoundCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume)private static intSpawnPointCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, BlockPos pos, float angle)private static intStopSoundCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, @Nullable SoundCategory category, @Nullable Identifier sound)private static intExperienceCommand. executeAdd(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component)private static intAdvancementCommand. executeAdvancement(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<Advancement> selection)private static intTitleCommand. executeClear(ServerCommandSource source, Collection<ServerPlayerEntity> targets)private static intAdvancementCommand. executeCriterion(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Advancement advancement, String criterion)private static intLootCommand. executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intRecipeCommand. executeGive(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes)private static intTitleCommand. executeReset(ServerCommandSource source, Collection<ServerPlayerEntity> targets)private static intExperienceCommand. executeSet(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component)private static intRecipeCommand. executeTake(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes)private static intTitleCommand. executeTimes(ServerCommandSource source, Collection<ServerPlayerEntity> targets, int fadeIn, int stay, int fadeOut)private static intTitleCommand. executeTitle(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text title, String titleType, Function<Text,Packet<?>> constructor)private static intBossBarCommand. setPlayers(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players)类型变量类型为ServerPlayerEntity的net.minecraft.server.command中的构造器参数 构造器 说明 Component(String name, BiConsumer<ServerPlayerEntity,Integer> adder, BiPredicate<ServerPlayerEntity,Integer> setter, ToIntFunction<ServerPlayerEntity> getter)Component(String name, BiConsumer<ServerPlayerEntity,Integer> adder, BiPredicate<ServerPlayerEntity,Integer> setter, ToIntFunction<ServerPlayerEntity> getter)Component(String name, BiConsumer<ServerPlayerEntity,Integer> adder, BiPredicate<ServerPlayerEntity,Integer> setter, ToIntFunction<ServerPlayerEntity> getter) -
net.minecraft.server.dedicated中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.server.dedicated中的方法 修饰符和类型 方法 说明 TextStreamMinecraftDedicatedServer. createFilterer(ServerPlayerEntity player) -
net.minecraft.server.integrated中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.server.integrated中的方法 修饰符和类型 方法 说明 protected voidIntegratedPlayerManager. savePlayerData(ServerPlayerEntity player) -
net.minecraft.server.network中ServerPlayerEntity的使用
声明为ServerPlayerEntity的net.minecraft.server.network中的字段 修饰符和类型 字段 说明 private @Nullable ServerPlayerEntityServerLoginNetworkHandler. delayedPlayerThe delayed player, waiting to join the server once the existing player with the same UUID is gone.private ServerPlayerEntityServerItemCooldownManager. playerprotected ServerPlayerEntityServerPlayerInteractionManager. playerServerPlayerEntityServerPlayNetworkHandler. player返回ServerPlayerEntity的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 ServerPlayerEntityServerPlayNetworkHandler. getPlayer()参数类型为ServerPlayerEntity的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 private voidServerLoginNetworkHandler. addToServer(ServerPlayerEntity player)booleanServerPlayerEntity. canBeSpectated(ServerPlayerEntity spectator)private static booleanServerPlayNetworkHandler. canPlace(ServerPlayerEntity player, ItemStack stack)Checks if a player can place a block or fluid from a bucket.voidServerPlayerEntity. copyFrom(ServerPlayerEntity oldPlayer, boolean alive)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)intServerRecipeBook. lockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)ActionResultServerPlayNetworkHandler.Interaction. run(ServerPlayerEntity player, Entity entity, Hand hand)voidServerRecipeBook. sendInitRecipesPacket(ServerPlayerEntity player)private voidServerRecipeBook. sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)booleanServerPlayerEntity. shouldFilterMessagesSentTo(ServerPlayerEntity player)voidEntityTrackerEntry. startTracking(ServerPlayerEntity player)voidEntityTrackerEntry. stopTracking(ServerPlayerEntity player)intServerRecipeBook. unlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)参数类型为ServerPlayerEntity的net.minecraft.server.network中的构造器 构造器 说明 DemoServerPlayerInteractionManager(ServerPlayerEntity player)ServerItemCooldownManager(ServerPlayerEntity player)ServerPlayerInteractionManager(ServerPlayerEntity player)ServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player) -
net.minecraft.server.world中ServerPlayerEntity的使用
类型参数类型为ServerPlayerEntity的net.minecraft.server.world中的字段 修饰符和类型 字段 说明 private List<ServerPlayerEntity>ServerWorld. playersprivate Long2ObjectMap<ObjectSet<ServerPlayerEntity>>ChunkTicketManager. playersByChunkPosprivate Object2BooleanMap<ServerPlayerEntity>PlayerChunkWatchingManager. watchingPlayers返回ServerPlayerEntity的net.minecraft.server.world中的方法 修饰符和类型 方法 说明 ServerPlayerEntityEntityTrackingListener. getPlayer()@Nullable ServerPlayerEntityServerWorld. getRandomAlivePlayer()返回变量类型为ServerPlayerEntity的类型的net.minecraft.server.world中的方法 修饰符和类型 方法 说明 List<ServerPlayerEntity>ServerWorld. getPlayers()List<ServerPlayerEntity>ServerWorld. getPlayers(Predicate<? super ServerPlayerEntity> predicate)Stream<ServerPlayerEntity>ChunkHolder.PlayersWatchingChunkProvider. getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge)Stream<ServerPlayerEntity>PlayerChunkWatchingManager. getPlayersWatchingChunk(long long2)Stream<ServerPlayerEntity>ThreadedAnvilChunkStorage. getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge)参数类型为ServerPlayerEntity的net.minecraft.server.world中的方法 修饰符和类型 方法 说明 voidPlayerChunkWatchingManager. add(long long2, ServerPlayerEntity player, boolean watchDisabled)private voidServerWorld. addPlayer(ServerPlayerEntity player)voidPlayerChunkWatchingManager. disableWatch(ServerPlayerEntity player)private booleanThreadedAnvilChunkStorage. doesNotGenerateChunks(ServerPlayerEntity player)voidPlayerChunkWatchingManager. enableWatch(ServerPlayerEntity player)private static intThreadedAnvilChunkStorage. getChebyshevDistance(ChunkPos pos, ServerPlayerEntity player, boolean useWatchedPosition)voidChunkTicketManager. handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player)voidChunkTicketManager. handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player)(专用程序包) voidThreadedAnvilChunkStorage. handlePlayerAddedOrRemoved(ServerPlayerEntity player, boolean added)booleanPlayerChunkWatchingManager. isWatchDisabled(ServerPlayerEntity player)booleanPlayerChunkWatchingManager. isWatchInactive(ServerPlayerEntity player)voidPlayerChunkWatchingManager. movePlayer(long prevPos, long currentPos, ServerPlayerEntity player)voidServerWorld. onPlayerChangeDimension(ServerPlayerEntity player)voidServerWorld. onPlayerConnected(ServerPlayerEntity player)voidServerWorld. onPlayerRespawned(ServerPlayerEntity player)voidServerWorld. onPlayerTeleport(ServerPlayerEntity player)voidPlayerChunkWatchingManager. remove(long long2, ServerPlayerEntity player)voidServerWorld. removePlayer(ServerPlayerEntity player, Entity.RemovalReason reason)private voidThreadedAnvilChunkStorage. sendChunkDataPackets(ServerPlayerEntity player, Packet<?>[] packets, WorldChunk chunk)private booleanServerWorld. sendToPlayerIfNearby(ServerPlayerEntity player, boolean force, double x, double y, double z, Packet<?> packet)protected voidThreadedAnvilChunkStorage. sendWatchPackets(ServerPlayerEntity player, ChunkPos pos, Packet<?>[] packets, boolean withinMaxWatchDistance, boolean withinViewDistance)<T extends ParticleEffect>
booleanServerWorld. spawnParticles(ServerPlayerEntity viewer, T particle, boolean force, double x, double y, double z, int count, double deltaX, double deltaY, double deltaZ, double speed)voidThreadedAnvilChunkStorage.EntityTracker. stopTracking(ServerPlayerEntity player)voidServerChunkManager. updatePosition(ServerPlayerEntity player)Updates the chunk section position of theplayer.voidThreadedAnvilChunkStorage. updatePosition(ServerPlayerEntity player)Updates the chunk section position of theplayer.voidThreadedAnvilChunkStorage.EntityTracker. updateTrackedStatus(ServerPlayerEntity player)Updates the tracked status of this tracker's entity for theplayer.private ChunkSectionPosThreadedAnvilChunkStorage. updateWatchedSection(ServerPlayerEntity player)Updates the watched chunk section position for theplayer, and sends a render distance update packet to the client.类型变量类型为ServerPlayerEntity的net.minecraft.server.world中的方法参数 修饰符和类型 方法 说明 booleanSleepManager. canResetTime(int percentage, List<ServerPlayerEntity> players)Returns if the night can actually be skipped at the tick this is called.List<ServerPlayerEntity>ServerWorld. getPlayers(Predicate<? super ServerPlayerEntity> predicate)booleanSleepManager. update(List<ServerPlayerEntity> players)Updates the sleeping player and total player counts.voidThreadedAnvilChunkStorage.EntityTracker. updateTrackedStatus(List<ServerPlayerEntity> players)Updates the tracked status of this tracker's entity for the given players. -
net.minecraft.stat中ServerPlayerEntity的使用
参数类型为ServerPlayerEntity的net.minecraft.stat中的方法 修饰符和类型 方法 说明 voidServerStatHandler. sendStats(ServerPlayerEntity player) -
net.minecraft.village.raid中ServerPlayerEntity的使用
返回变量类型为ServerPlayerEntity的类型的net.minecraft.village.raid中的方法 修饰符和类型 方法 说明 private Predicate<ServerPlayerEntity>Raid. isInRaidDistance()参数类型为ServerPlayerEntity的net.minecraft.village.raid中的方法 修饰符和类型 方法 说明 @Nullable RaidRaidManager. startRaid(ServerPlayerEntity player)
-