Uses of Class
net.minecraft.server.network.ServerPlayerEntity
Package
Description
-
Uses of ServerPlayerEntity in net.minecraft.advancement
Modifier and TypeMethodDescriptionvoid
AdvancementRewards.apply
(ServerPlayerEntity player) void
PlayerAdvancementTracker.sendUpdate
(ServerPlayerEntity player) void
PlayerAdvancementTracker.setOwner
(ServerPlayerEntity owner) ModifierConstructorDescriptionPlayerAdvancementTracker
(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, File advancementFile, ServerPlayerEntity owner) -
Uses of ServerPlayerEntity in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionvoid
VillagerTradeCriterion.handle
(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack) boolean
EffectsChangedCriterion.Conditions.matches
(ServerPlayerEntity player, @Nullable LootContext context) boolean
EntityHurtPlayerCriterion.Conditions.matches
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) boolean
LevitationCriterion.Conditions.matches
(ServerPlayerEntity player, Vec3d startPos, int duration) boolean
PlayerHurtEntityCriterion.Conditions.matches
(ServerPlayerEntity player, LootContext entityContext, DamageSource source, float dealt, float taken, boolean blocked) protected void
AbstractCriterion.test
(ServerPlayerEntity player, Predicate<T> tester) void
BeeNestDestroyedCriterion.test
(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount) void
ItemUsedOnBlockCriterion.test
(ServerPlayerEntity player, BlockPos pos, ItemStack stack) void
LightningStrikeCriterion.test
(ServerPlayerEntity player, LightningEntity lightning, List<Entity> bystanders) boolean
OnKilledCriterion.Conditions.test
(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow) void
PlayerGeneratesContainerLootCriterion.test
(ServerPlayerEntity player, Identifier id) void
PlayerInteractedWithEntityCriterion.test
(ServerPlayerEntity player, ItemStack stack, Entity entity) void
SlideDownBlockCriterion.test
(ServerPlayerEntity player, BlockState state) void
StartedRidingCriterion.test
(ServerPlayerEntity player) boolean
ThrownItemPickedUpByEntityCriterion.Conditions.test
(ServerPlayerEntity player, ItemStack stack, LootContext entityContext) void
UsingItemCriterion.test
(ServerPlayerEntity player, ItemStack stack) void
BredAnimalsCriterion.trigger
(ServerPlayerEntity player, AnimalEntity parent, AnimalEntity partner, @Nullable PassiveEntity child) void
BrewedPotionCriterion.trigger
(ServerPlayerEntity player, Potion potion) void
ChangedDimensionCriterion.trigger
(ServerPlayerEntity player, RegistryKey<World> from, RegistryKey<World> to) void
ChanneledLightningCriterion.trigger
(ServerPlayerEntity player, Collection<? extends Entity> victims) void
ConstructBeaconCriterion.trigger
(ServerPlayerEntity player, int level) void
ConsumeItemCriterion.trigger
(ServerPlayerEntity player, ItemStack stack) void
CuredZombieVillagerCriterion.trigger
(ServerPlayerEntity player, ZombieEntity zombie, VillagerEntity villager) void
EffectsChangedCriterion.trigger
(ServerPlayerEntity player, @Nullable Entity source) void
EnchantedItemCriterion.trigger
(ServerPlayerEntity player, ItemStack stack, int levels) void
EnterBlockCriterion.trigger
(ServerPlayerEntity player, BlockState state) void
EntityHurtPlayerCriterion.trigger
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) void
FilledBucketCriterion.trigger
(ServerPlayerEntity player, ItemStack stack) void
FishingRodHookedCriterion.trigger
(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) void
InventoryChangedCriterion.trigger
(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack) private void
InventoryChangedCriterion.trigger
(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied) void
ItemDurabilityChangedCriterion.trigger
(ServerPlayerEntity player, ItemStack stack, int durability) void
KilledByCrossbowCriterion.trigger
(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities) void
LevitationCriterion.trigger
(ServerPlayerEntity player, Vec3d startPos, int duration) void
LocationArrivalCriterion.trigger
(ServerPlayerEntity player) void
NetherTravelCriterion.trigger
(ServerPlayerEntity player, Vec3d enteredPos) void
OnKilledCriterion.trigger
(ServerPlayerEntity player, Entity entity, DamageSource killingDamage) void
PlacedBlockCriterion.trigger
(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack) void
PlayerHurtEntityCriterion.trigger
(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked) void
RecipeUnlockedCriterion.trigger
(ServerPlayerEntity player, Recipe<?> recipe) void
ShotCrossbowCriterion.trigger
(ServerPlayerEntity player, ItemStack stack) void
SummonedEntityCriterion.trigger
(ServerPlayerEntity player, Entity entity) void
TameAnimalCriterion.trigger
(ServerPlayerEntity player, AnimalEntity entity) void
TargetHitCriterion.trigger
(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength) void
ThrownItemPickedUpByEntityCriterion.trigger
(ServerPlayerEntity player, ItemStack stack, Entity entity) void
TickCriterion.trigger
(ServerPlayerEntity player) void
UsedEnderEyeCriterion.trigger
(ServerPlayerEntity player, BlockPos strongholdPos) void
UsedTotemCriterion.trigger
(ServerPlayerEntity player, ItemStack stack) -
Uses of ServerPlayerEntity in net.minecraft.block.entity
Modifier and TypeMethodDescriptionvoid
AbstractFurnaceBlockEntity.dropExperienceForRecipesUsed
(ServerPlayerEntity player) SignBlockEntity.getCommandSource
(@Nullable ServerPlayerEntity player) boolean
SignBlockEntity.onActivate
(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.command
Modifier and TypeMethodDescriptionEntitySelector.getPlayer
(ServerCommandSource serverCommandSource) Modifier and TypeMethodDescriptionEntitySelector.getPlayers
(ServerCommandSource serverCommandSource) -
Uses of ServerPlayerEntity in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic ServerPlayerEntity
EntityArgumentType.getPlayer
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) Modifier and TypeMethodDescriptionstatic 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) -
Uses of ServerPlayerEntity in net.minecraft.entity
Modifier and TypeMethodDescriptionboolean
Entity.canBeSpectated
(ServerPlayerEntity spectator) void
Entity.onStartedTrackingBy
(ServerPlayerEntity player) void
Entity.onStoppedTrackingBy
(ServerPlayerEntity player) void
LightningEntity.setChanneler
(@Nullable ServerPlayerEntity channeler) -
Uses of ServerPlayerEntity in net.minecraft.entity.ai.goal
-
Uses of ServerPlayerEntity in net.minecraft.entity.boss
Modifier and TypeFieldDescriptionprivate final Set<ServerPlayerEntity>
ServerBossBar.players
private final Set<ServerPlayerEntity>
ServerBossBar.unmodifiablePlayers
Modifier and TypeMethodDescriptionvoid
CommandBossBar.addPlayer
(ServerPlayerEntity player) void
ServerBossBar.addPlayer
(ServerPlayerEntity player) void
BossBarManager.onPlayerConnect
(ServerPlayerEntity player) void
CommandBossBar.onPlayerConnect
(ServerPlayerEntity player) void
BossBarManager.onPlayerDisconnect
(ServerPlayerEntity player) void
CommandBossBar.onPlayerDisconnect
(ServerPlayerEntity player) void
WitherEntity.onStartedTrackingBy
(ServerPlayerEntity player) void
WitherEntity.onStoppedTrackingBy
(ServerPlayerEntity player) void
CommandBossBar.removePlayer
(ServerPlayerEntity player) void
ServerBossBar.removePlayer
(ServerPlayerEntity player) Modifier and TypeMethodDescriptionboolean
CommandBossBar.addPlayers
(Collection<ServerPlayerEntity> players) -
Uses of ServerPlayerEntity in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionboolean
TameableShoulderEntity.mountOnto
(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.item
Modifier and TypeMethodDescriptionboolean
ItemStack.damage
(int amount, Random random, @Nullable ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.network.packet.s2c.play
ModifierConstructorDescriptionPlayerListS2CPacket
(PlayerListS2CPacket.Action action, ServerPlayerEntity[] players) ModifierConstructorDescriptionPlayerListS2CPacket
(PlayerListS2CPacket.Action action, Collection<ServerPlayerEntity> players) -
Uses of ServerPlayerEntity in net.minecraft.predicate
Modifier and TypeMethodDescriptionboolean
DamagePredicate.test
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) -
Uses of ServerPlayerEntity in net.minecraft.predicate.entity
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createAdvancementEntityLootContext
(ServerPlayerEntity player, Entity target) boolean
DamageSourcePredicate.test
(ServerPlayerEntity player, DamageSource damageSource) boolean
EntityPredicate.test
(ServerPlayerEntity player, @Nullable Entity entity) -
Uses of ServerPlayerEntity in net.minecraft.recipe
Modifier and TypeMethodDescriptionvoid
InputSlotFiller.fillInputSlots
(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll) default boolean
RecipeUnlocker.shouldCraftRecipe
(World world, ServerPlayerEntity player, Recipe<?> recipe) -
Uses of ServerPlayerEntity in net.minecraft.screen
Modifier and TypeMethodDescriptionvoid
AbstractRecipeScreenHandler.fillInputSlots
(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final Map<UUID,
ServerPlayerEntity> PlayerManager.playerMap
private final List<ServerPlayerEntity>
PlayerManager.players
Modifier and TypeMethodDescriptionPlayerManager.createPlayer
(com.mojang.authlib.GameProfile profile) PlayerManager.respawnPlayer
(ServerPlayerEntity player, boolean alive) Modifier and TypeMethodDescriptionPlayerManager.getPlayerList()
Gets a list of all players on a Minecraft server.PlayerManager.getPlayersByIp
(String ip) Modifier and TypeMethodDescriptionMinecraftServer.createFilterer
(ServerPlayerEntity player) PlayerManager.getAdvancementTracker
(ServerPlayerEntity player) MinecraftServer.getPlayerInteractionManager
(ServerPlayerEntity player) PlayerManager.loadPlayerData
(ServerPlayerEntity player) void
PlayerManager.onPlayerConnect
(ClientConnection connection, ServerPlayerEntity player) void
PlayerManager.remove
(ServerPlayerEntity player) PlayerManager.respawnPlayer
(ServerPlayerEntity player, boolean alive) protected void
PlayerManager.savePlayerData
(ServerPlayerEntity player) void
PlayerManager.sendCommandTree
(ServerPlayerEntity player) private void
PlayerManager.sendCommandTree
(ServerPlayerEntity player, int permissionLevel) private void
MinecraftServer.sendDifficulty
(ServerPlayerEntity player) void
PlayerManager.sendPlayerStatus
(ServerPlayerEntity player) protected void
PlayerManager.sendScoreboard
(ServerScoreboard scoreboard, ServerPlayerEntity player) void
PlayerManager.sendWorldInfo
(ServerPlayerEntity player, ServerWorld world) Modifier and TypeMethodDescriptionvoid
PlayerManager.broadcast
(Text serverMessage, Function<ServerPlayerEntity, Text> playerMessageFactory, MessageType playerMessageType, UUID sender) -
Uses of ServerPlayerEntity in net.minecraft.server.command
Modifier and TypeFieldDescriptionfinal BiConsumer<ServerPlayerEntity,
Integer> ExperienceCommand.Component.adder
(package private) final ToIntFunction<ServerPlayerEntity>
ExperienceCommand.Component.getter
final BiPredicate<ServerPlayerEntity,
Integer> ExperienceCommand.Component.setter
Modifier and TypeMethodDescriptionServerCommandSource.getPlayer()
Gets the player from this command source or throws a command syntax exception if this command source is not a player.Modifier and TypeMethodDescriptionprivate static int
SpectateCommand.execute
(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) private static int
ExperienceCommand.executeQuery
(ServerCommandSource source, ServerPlayerEntity player, ExperienceCommand.Component component) RaidCommand.getRaid
(ServerPlayerEntity player) private static ScoreboardPlayerScore
TriggerCommand.getScore
(ServerPlayerEntity player, ScoreboardObjective objective) int
AdvancementCommand.Operation.processAll
(ServerPlayerEntity player, Iterable<Advancement> advancements) protected abstract boolean
AdvancementCommand.Operation.processEach
(ServerPlayerEntity player, Advancement advancement) protected abstract boolean
AdvancementCommand.Operation.processEachCriterion
(ServerPlayerEntity player, Advancement advancement, String criterion) void
CommandManager.sendCommandTree
(ServerPlayerEntity player) private static void
GameModeCommand.sendFeedback
(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) Modifier and TypeMethodDescriptionprivate static int
ClearCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount) private static int
GameModeCommand.execute
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode) private static int
GiveCommand.execute
(ServerCommandSource source, ItemStackArgument item, Collection<ServerPlayerEntity> targets, int count) private static int
KickCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text reason) private static int
ListCommand.execute
(ServerCommandSource source, Function<ServerPlayerEntity, Text> nameProvider) private static int
MessageCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text message) private static int
ParticleCommand.execute
(ServerCommandSource source, ParticleEffect parameters, Vec3d pos, Vec3d delta, float speed, int count, boolean force, Collection<ServerPlayerEntity> viewers) private static int
PlaySoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume) private static int
SpawnPointCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, BlockPos pos, float angle) private static int
StopSoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, @Nullable SoundCategory category, @Nullable Identifier sound) private static int
ExperienceCommand.executeAdd
(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component) private static int
AdvancementCommand.executeAdvancement
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<Advancement> selection) private static int
TitleCommand.executeClear
(ServerCommandSource source, Collection<ServerPlayerEntity> targets) private static int
AdvancementCommand.executeCriterion
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Advancement advancement, String criterion) private static int
LootCommand.executeGive
(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static int
RecipeCommand.executeGive
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes) private static int
TitleCommand.executeReset
(ServerCommandSource source, Collection<ServerPlayerEntity> targets) private static int
ExperienceCommand.executeSet
(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component) private static int
RecipeCommand.executeTake
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes) private static int
TitleCommand.executeTimes
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, int fadeIn, int stay, int fadeOut) private static int
TitleCommand.executeTitle
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text title, String titleType, Function<Text, Packet<?>> constructor) private static int
BossBarCommand.setPlayers
(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players) ModifierConstructorDescriptionprivate
Component
(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) private
Component
(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) private
Component
(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) -
Uses of ServerPlayerEntity in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionMinecraftDedicatedServer.createFilterer
(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.integrated
Modifier and TypeMethodDescriptionprotected void
IntegratedPlayerManager.savePlayerData
(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate @Nullable ServerPlayerEntity
ServerLoginNetworkHandler.delayedPlayer
The delayed player, waiting to join the server once the existing player with the same UUID is gone.private final ServerPlayerEntity
ServerItemCooldownManager.player
protected final ServerPlayerEntity
ServerPlayerInteractionManager.player
ServerPlayNetworkHandler.player
Modifier and TypeMethodDescriptionprivate void
ServerLoginNetworkHandler.addToServer
(ServerPlayerEntity player) boolean
ServerPlayerEntity.canBeSpectated
(ServerPlayerEntity spectator) private static boolean
ServerPlayNetworkHandler.canPlace
(ServerPlayerEntity player, ItemStack stack) Checks if a player can place a block or fluid from a bucket.void
ServerPlayerEntity.copyFrom
(ServerPlayerEntity oldPlayer, boolean alive) DemoServerPlayerInteractionManager.interactBlock
(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock
(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) DemoServerPlayerInteractionManager.interactItem
(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayerInteractionManager.interactItem
(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) int
ServerRecipeBook.lockRecipes
(Collection<Recipe<?>> recipes, ServerPlayerEntity player) ServerPlayNetworkHandler.Interaction.run
(ServerPlayerEntity player, Entity entity, Hand hand) void
ServerRecipeBook.sendInitRecipesPacket
(ServerPlayerEntity player) private void
ServerRecipeBook.sendUnlockRecipesPacket
(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds) boolean
ServerPlayerEntity.shouldFilterMessagesSentTo
(ServerPlayerEntity player) void
EntityTrackerEntry.startTracking
(ServerPlayerEntity player) void
EntityTrackerEntry.stopTracking
(ServerPlayerEntity player) int
ServerRecipeBook.unlockRecipes
(Collection<Recipe<?>> recipes, ServerPlayerEntity player) ModifierConstructorDescriptionServerPlayNetworkHandler
(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.world
Modifier and TypeFieldDescription(package private) final List<ServerPlayerEntity>
ServerWorld.players
(package private) final Long2ObjectMap<ObjectSet<ServerPlayerEntity>>
ChunkTicketManager.playersByChunkPos
private final Object2BooleanMap<ServerPlayerEntity>
PlayerChunkWatchingManager.watchingPlayers
Modifier and TypeMethodDescriptionEntityTrackingListener.getPlayer()
ServerWorld.getRandomAlivePlayer()
Modifier and TypeMethodDescriptionServerWorld.getPlayers()
ServerWorld.getPlayers
(Predicate<? super ServerPlayerEntity> predicate) ChunkHolder.PlayersWatchingChunkProvider.getPlayersWatchingChunk
(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) PlayerChunkWatchingManager.getPlayersWatchingChunk
(long long2) ThreadedAnvilChunkStorage.getPlayersWatchingChunk
(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) Modifier and TypeMethodDescriptionvoid
PlayerChunkWatchingManager.add
(long long2, ServerPlayerEntity player, boolean watchDisabled) private void
ServerWorld.addPlayer
(ServerPlayerEntity player) void
PlayerChunkWatchingManager.disableWatch
(ServerPlayerEntity player) private boolean
ThreadedAnvilChunkStorage.doesNotGenerateChunks
(ServerPlayerEntity player) void
PlayerChunkWatchingManager.enableWatch
(ServerPlayerEntity player) private static int
ThreadedAnvilChunkStorage.getChebyshevDistance
(ChunkPos pos, ServerPlayerEntity player, boolean useWatchedPosition) void
ChunkTicketManager.handleChunkEnter
(ChunkSectionPos pos, ServerPlayerEntity player) void
ChunkTicketManager.handleChunkLeave
(ChunkSectionPos pos, ServerPlayerEntity player) (package private) void
ThreadedAnvilChunkStorage.handlePlayerAddedOrRemoved
(ServerPlayerEntity player, boolean added) boolean
PlayerChunkWatchingManager.isWatchDisabled
(ServerPlayerEntity player) boolean
PlayerChunkWatchingManager.isWatchInactive
(ServerPlayerEntity player) void
PlayerChunkWatchingManager.movePlayer
(long prevPos, long currentPos, ServerPlayerEntity player) void
ServerWorld.onPlayerChangeDimension
(ServerPlayerEntity player) void
ServerWorld.onPlayerConnected
(ServerPlayerEntity player) void
ServerWorld.onPlayerRespawned
(ServerPlayerEntity player) void
ServerWorld.onPlayerTeleport
(ServerPlayerEntity player) void
PlayerChunkWatchingManager.remove
(long long2, ServerPlayerEntity player) void
ServerWorld.removePlayer
(ServerPlayerEntity player, Entity.RemovalReason reason) private void
ThreadedAnvilChunkStorage.sendChunkDataPackets
(ServerPlayerEntity player, Packet<?>[] packets, WorldChunk chunk) private boolean
ServerWorld.sendToPlayerIfNearby
(ServerPlayerEntity player, boolean force, double x, double y, double z, Packet<?> packet) protected void
ThreadedAnvilChunkStorage.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) void
ThreadedAnvilChunkStorage.EntityTracker.stopTracking
(ServerPlayerEntity player) void
ServerChunkManager.updatePosition
(ServerPlayerEntity player) Updates the chunk section position of theplayer
.void
ThreadedAnvilChunkStorage.updatePosition
(ServerPlayerEntity player) Updates the chunk section position of theplayer
.void
ThreadedAnvilChunkStorage.EntityTracker.updateTrackedStatus
(ServerPlayerEntity player) Updates the tracked status of this tracker's entity for theplayer
.private ChunkSectionPos
ThreadedAnvilChunkStorage.updateWatchedSection
(ServerPlayerEntity player) Updates the watched chunk section position for theplayer
, and sends a render distance update packet to the client.Modifier and TypeMethodDescriptionboolean
SleepManager.canResetTime
(int percentage, List<ServerPlayerEntity> players) Returns if the night can actually be skipped at the tick this is called.ServerWorld.getPlayers
(Predicate<? super ServerPlayerEntity> predicate) boolean
SleepManager.update
(List<ServerPlayerEntity> players) Updates the sleeping player and total player counts.void
ThreadedAnvilChunkStorage.EntityTracker.updateTrackedStatus
(List<ServerPlayerEntity> players) Updates the tracked status of this tracker's entity for the given players. -
Uses of ServerPlayerEntity in net.minecraft.stat
-
Uses of ServerPlayerEntity in net.minecraft.village.raid