Uses of Class
net.minecraft.server.network.ServerPlayerEntity
Packages that use ServerPlayerEntity
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of ServerPlayerEntity in net.minecraft.advancement
Fields in net.minecraft.advancement declared as ServerPlayerEntityMethods in net.minecraft.advancement with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidAdvancementRewards.apply(ServerPlayerEntity player) voidPlayerAdvancementTracker.sendUpdate(ServerPlayerEntity player) voidPlayerAdvancementTracker.setOwner(ServerPlayerEntity owner) Constructors in net.minecraft.advancement with parameters of type ServerPlayerEntityModifierConstructorDescriptionPlayerAdvancementTracker(com.mojang.datafixers.DataFixer dataFixer, PlayerManager playerManager, ServerAdvancementLoader advancementLoader, Path filePath, ServerPlayerEntity owner) -
Uses of ServerPlayerEntity in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanEffectsChangedCriterion.Conditions.matches(ServerPlayerEntity player, @Nullable LootContext context) 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) booleanOnKilledCriterion.Conditions.test(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext) protected voidAbstractCriterion.trigger(ServerPlayerEntity player, Predicate<T> predicate) voidBeeNestDestroyedCriterion.trigger(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount) 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, @Nullable Entity source) 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) voidItemCriterion.trigger(ServerPlayerEntity player, BlockPos pos, ItemStack stack) voidItemDurabilityChangedCriterion.trigger(ServerPlayerEntity player, ItemStack stack, int durability) voidKilledByCrossbowCriterion.trigger(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities) voidLevitationCriterion.trigger(ServerPlayerEntity player, Vec3d startPos, int duration) voidLightningStrikeCriterion.trigger(ServerPlayerEntity player, LightningEntity lightning, List<Entity> bystanders) voidOnKilledCriterion.trigger(ServerPlayerEntity player, Entity entity, DamageSource killingDamage) voidPlayerGeneratesContainerLootCriterion.trigger(ServerPlayerEntity player, Identifier id) voidPlayerHurtEntityCriterion.trigger(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked) voidPlayerInteractedWithEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, Entity entity) voidRecipeCraftedCriterion.trigger(ServerPlayerEntity player, Identifier recipeId, List<ItemStack> ingredients) voidRecipeUnlockedCriterion.trigger(ServerPlayerEntity player, Recipe<?> recipe) voidShotCrossbowCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidSlideDownBlockCriterion.trigger(ServerPlayerEntity player, BlockState state) voidStartedRidingCriterion.trigger(ServerPlayerEntity player) 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, @Nullable Entity entity) voidTickCriterion.trigger(ServerPlayerEntity player) voidTravelCriterion.trigger(ServerPlayerEntity player, Vec3d startPos) voidUsedEnderEyeCriterion.trigger(ServerPlayerEntity player, BlockPos strongholdPos) voidUsedTotemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidUsingItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidVillagerTradeCriterion.trigger(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack) -
Uses of ServerPlayerEntity in net.minecraft.block.entity
Methods in net.minecraft.block.entity that return ServerPlayerEntityModifier and TypeMethodDescriptionstatic @Nullable ServerPlayerEntitySculkShriekerBlockEntity.findResponsiblePlayerFromEntity(@Nullable Entity entity) Methods in net.minecraft.block.entity that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate static List<ServerPlayerEntity>SculkShriekerWarningManager.getPlayersInRange(ServerWorld world, BlockPos pos) Methods in net.minecraft.block.entity with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidAbstractFurnaceBlockEntity.dropExperienceForRecipesUsed(ServerPlayerEntity player) voidSculkShriekerBlockEntity.shriek(ServerWorld world, @Nullable ServerPlayerEntity player) private booleanSculkShriekerBlockEntity.trySyncWarningLevel(ServerWorld world, ServerPlayerEntity player) static OptionalIntSculkShriekerWarningManager.warnNearbyPlayers(ServerWorld world, BlockPos pos, ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.command
Methods in net.minecraft.command that return ServerPlayerEntityMethods in net.minecraft.command that return types with arguments of type ServerPlayerEntity -
Uses of ServerPlayerEntity in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return ServerPlayerEntityModifier and TypeMethodDescriptionstatic ServerPlayerEntityEntityArgumentType.getPlayer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic Collection<ServerPlayerEntity>EntityArgumentType.getOptionalPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<ServerPlayerEntity>EntityArgumentType.getPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of ServerPlayerEntity in net.minecraft.entity
Fields in net.minecraft.entity declared as ServerPlayerEntityMethods in net.minecraft.entity that return ServerPlayerEntityMethods in net.minecraft.entity with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanEntity.canBeSpectated(ServerPlayerEntity spectator) Returns whetherspectatorcan spectate this entity.voidEntity.onStartedTrackingBy(ServerPlayerEntity player) Called whenplayerstarts tracking this entity.voidEntity.onStoppedTrackingBy(ServerPlayerEntity player) Called whenplayerstops tracking this entity.voidLightningEntity.setChanneler(@Nullable ServerPlayerEntity channeler) -
Uses of ServerPlayerEntity in net.minecraft.entity.ai.brain.task
Methods in net.minecraft.entity.ai.brain.task with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate voidGiveInventoryToLookTargetTask.triggerCriterion(LookTarget target, ItemStack stack, ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as ServerPlayerEntity -
Uses of ServerPlayerEntity in net.minecraft.entity.boss
Fields in net.minecraft.entity.boss with type parameters of type ServerPlayerEntityModifier and TypeFieldDescriptionprivate final Set<ServerPlayerEntity>ServerBossBar.playersprivate final Set<ServerPlayerEntity>ServerBossBar.unmodifiablePlayersMethods in net.minecraft.entity.boss that return types with arguments of type ServerPlayerEntityMethods in net.minecraft.entity.boss with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidCommandBossBar.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) Called whenplayerstarts tracking this entity.voidWitherEntity.onStoppedTrackingBy(ServerPlayerEntity player) Called whenplayerstops tracking this entity.voidCommandBossBar.removePlayer(ServerPlayerEntity player) voidServerBossBar.removePlayer(ServerPlayerEntity player) Method parameters in net.minecraft.entity.boss with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanCommandBossBar.addPlayers(Collection<ServerPlayerEntity> players) -
Uses of ServerPlayerEntity in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic List<ServerPlayerEntity>StatusEffectUtil.addEffectToPlayersWithinDistance(ServerWorld world, @Nullable Entity entity, Vec3d origin, double range, StatusEffectInstance statusEffectInstance, int duration) -
Uses of ServerPlayerEntity in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ServerPlayerEntityMethods in net.minecraft.entity.passive that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic Optional<ServerPlayerEntity>AllayBrain.getLikedPlayer(LivingEntity allay) Methods in net.minecraft.entity.passive with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanTameableShoulderEntity.mountOnto(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.item
Methods in net.minecraft.item with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanItemStack.damage(int amount, Random random, @Nullable ServerPlayerEntity player) Damages this item stack. -
Uses of ServerPlayerEntity in net.minecraft.network.message
Methods in net.minecraft.network.message with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionMessageDecorator.decorate(@Nullable ServerPlayerEntity sender, Text message) voidSentMessage.Chat.send(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) voidSentMessage.Profileless.send(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) voidSentMessage.send(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) -
Uses of ServerPlayerEntity in net.minecraft.network.packet.s2c.play
Method parameters in net.minecraft.network.packet.s2c.play with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic PlayerListS2CPacketPlayerListS2CPacket.entryFromPlayer(Collection<ServerPlayerEntity> players) Constructors in net.minecraft.network.packet.s2c.play with parameters of type ServerPlayerEntityModifierConstructorDescription(package private)Entry(ServerPlayerEntity player) PlayerListS2CPacket(PlayerListS2CPacket.Action action, ServerPlayerEntity player) Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type ServerPlayerEntityModifierConstructorDescriptionPlayerListS2CPacket(EnumSet<PlayerListS2CPacket.Action> actions, Collection<ServerPlayerEntity> players) -
Uses of ServerPlayerEntity in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanDamagePredicate.test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) -
Uses of ServerPlayerEntity in net.minecraft.predicate.entity
Methods in net.minecraft.predicate.entity with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic LootContextEntityPredicate.createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target) booleanDamageSourcePredicate.test(ServerPlayerEntity player, DamageSource damageSource) booleanEntityPredicate.test(ServerPlayerEntity player, @Nullable Entity entity) -
Uses of ServerPlayerEntity in net.minecraft.recipe
Methods in net.minecraft.recipe with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidInputSlotFiller.fillInputSlots(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll) default booleanRecipeUnlocker.shouldCraftRecipe(World world, ServerPlayerEntity player, Recipe<?> recipe) -
Uses of ServerPlayerEntity in net.minecraft.screen
Methods in net.minecraft.screen with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidAbstractRecipeScreenHandler.fillInputSlots(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server
Fields in net.minecraft.server with type parameters of type ServerPlayerEntityModifier and TypeFieldDescriptionprivate final Map<UUID,ServerPlayerEntity> PlayerManager.playerMapprivate final List<ServerPlayerEntity>PlayerManager.playersMethods in net.minecraft.server that return ServerPlayerEntityModifier and TypeMethodDescriptionPlayerManager.createPlayer(com.mojang.authlib.GameProfile profile) PlayerManager.respawnPlayer(ServerPlayerEntity player, boolean alive) Methods in net.minecraft.server that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionPlayerManager.getPlayerList()Gets a list of all players on a Minecraft server.PlayerManager.getPlayersByIp(String ip) Methods in net.minecraft.server with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate voidPlayerManager.broadcast(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.voidPlayerManager.broadcast(SignedMessage message, ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.MinecraftServer.createFilterer(ServerPlayerEntity player) PlayerManager.getAdvancementTracker(ServerPlayerEntity player) MinecraftServer.getPlayerInteractionManager(ServerPlayerEntity player) PlayerManager.loadPlayerData(ServerPlayerEntity player) voidPlayerManager.onPlayerConnect(ClientConnection connection, ServerPlayerEntity player) voidPlayerManager.remove(ServerPlayerEntity player) PlayerManager.respawnPlayer(ServerPlayerEntity player, boolean alive) protected voidPlayerManager.savePlayerData(ServerPlayerEntity player) voidPlayerManager.sendCommandTree(ServerPlayerEntity player) private voidPlayerManager.sendCommandTree(ServerPlayerEntity player, int permissionLevel) private voidMinecraftServer.sendDifficulty(ServerPlayerEntity player) voidPlayerManager.sendPlayerStatus(ServerPlayerEntity player) protected voidPlayerManager.sendScoreboard(ServerScoreboard scoreboard, ServerPlayerEntity player) voidPlayerManager.sendWorldInfo(ServerPlayerEntity player, ServerWorld world) Method parameters in net.minecraft.server with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate voidPlayerManager.broadcast(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.voidPlayerManager.broadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, boolean overlay) Broadcasts a message to all players and the server console. -
Uses of ServerPlayerEntity in net.minecraft.server.command
Fields in net.minecraft.server.command with type parameters of type ServerPlayerEntityModifier and TypeFieldDescriptionfinal BiConsumer<ServerPlayerEntity,Integer> ExperienceCommand.Component.adder(package private) final ToIntFunction<ServerPlayerEntity>ExperienceCommand.Component.getterfinal BiPredicate<ServerPlayerEntity,Integer> ExperienceCommand.Component.setterMethods in net.minecraft.server.command that return ServerPlayerEntityModifier and TypeMethodDescriptionServerCommandSource.getPlayer()Returns the player from this command source, ornullif the source is not a player.ServerCommandSource.getPlayerOrThrow()Returns the player from this command source.Methods in net.minecraft.server.command with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate static intSpectateCommand.execute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) private static intExperienceCommand.executeQuery(ServerCommandSource source, ServerPlayerEntity player, ExperienceCommand.Component component) RaidCommand.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.sendFeedback(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) booleanServerCommandSource.shouldFilterText(ServerPlayerEntity recipient) Returns whether to filter text sent torecipient.Method parameters in net.minecraft.server.command with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate 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 voidMessageCommand.execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, SignedMessage 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 voidTeamMsgCommand.execute(ServerCommandSource source, Entity entity, Team team, List<ServerPlayerEntity> recipients, SignedMessage message) 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) Constructor parameters in net.minecraft.server.command with type arguments of type ServerPlayerEntityModifierConstructorDescriptionprivateComponent(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) privateComponent(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) privateComponent(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) -
Uses of ServerPlayerEntity in net.minecraft.server.dedicated
Methods in net.minecraft.server.dedicated with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionMinecraftDedicatedServer.createFilterer(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.integrated
Methods in net.minecraft.server.integrated with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprotected voidIntegratedPlayerManager.savePlayerData(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.network
Fields in net.minecraft.server.network declared as ServerPlayerEntityModifier and TypeFieldDescriptionprivate @Nullable ServerPlayerEntityServerLoginNetworkHandler.delayedPlayerThe delayed player, waiting to join the server once the existing player with the same UUID is gone.private final ServerPlayerEntityServerItemCooldownManager.playerprotected final ServerPlayerEntityServerPlayerInteractionManager.playerServerPlayNetworkHandler.playerMethods in net.minecraft.server.network that return ServerPlayerEntityMethods in net.minecraft.server.network with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate voidServerLoginNetworkHandler.addToServer(ServerPlayerEntity player) booleanServerPlayerEntity.canBeSpectated(ServerPlayerEntity spectator) Returns whetherspectatorcan spectate this entity.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) 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) intServerRecipeBook.lockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player) ServerPlayNetworkHandler.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) Constructors in net.minecraft.server.network with parameters of type ServerPlayerEntityModifierConstructorDescriptionServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.world
Fields in net.minecraft.server.world with type parameters of type ServerPlayerEntityModifier and TypeFieldDescription(package private) final List<ServerPlayerEntity>ServerWorld.players(package private) final Long2ObjectMap<ObjectSet<ServerPlayerEntity>>ChunkTicketManager.playersByChunkPosprivate final Object2BooleanMap<ServerPlayerEntity>PlayerChunkWatchingManager.watchingPlayersMethods in net.minecraft.server.world that return ServerPlayerEntityModifier and TypeMethodDescriptionEntityTrackingListener.getPlayer()ServerWorld.getRandomAlivePlayer()Returns a randomly selected alive player, ornullif there is none.Methods in net.minecraft.server.world that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionServerWorld.getPlayers()ServerWorld.getPlayers(Predicate<? super ServerPlayerEntity> predicate) Returns the list of players filtered usingpredicate.ServerWorld.getPlayers(Predicate<? super ServerPlayerEntity> predicate, int limit) Returns the list of players filtered usingpredicate, up tolimit.ChunkHolder.PlayersWatchingChunkProvider.getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) PlayerChunkWatchingManager.getPlayersWatchingChunk(long long2) ThreadedAnvilChunkStorage.getPlayersWatchingChunk(ChunkPos pos) ThreadedAnvilChunkStorage.getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) Methods in net.minecraft.server.world with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidPlayerChunkWatchingManager.add(long long2, ServerPlayerEntity player, boolean watchDisabled) private voidServerWorld.addPlayer(ServerPlayerEntity player) private booleanThreadedAnvilChunkStorage.canTickChunk(ServerPlayerEntity player, ChunkPos pos) Returns whether theplayercan tick the chunk atpos.voidPlayerChunkWatchingManager.disableWatch(ServerPlayerEntity player) private booleanThreadedAnvilChunkStorage.doesNotGenerateChunks(ServerPlayerEntity player) voidPlayerChunkWatchingManager.enableWatch(ServerPlayerEntity player) voidChunkTicketManager.handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player) voidChunkTicketManager.handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player) (package private) 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) Called on the destination world when a player changed the dimension using portals.voidServerWorld.onPlayerConnected(ServerPlayerEntity player) Called on the player's world when the player connected to the server and spawned.voidServerWorld.onPlayerRespawned(ServerPlayerEntity player) Called on the world that has the player's respawn point when the player respawned.voidServerWorld.onPlayerTeleport(ServerPlayerEntity player) Called on the destination world when a player changed the dimension by teleportation.voidPlayerChunkWatchingManager.remove(long long2, ServerPlayerEntity player) voidServerWorld.removePlayer(ServerPlayerEntity player, Entity.RemovalReason reason) private voidThreadedAnvilChunkStorage.sendChunkDataPackets(ServerPlayerEntity player, MutableObject<ChunkDataS2CPacket> cachedDataPacket, WorldChunk chunk) private booleanServerWorld.sendToPlayerIfNearby(ServerPlayerEntity player, boolean force, double x, double y, double z, Packet<?> packet) Sends thepackettoplayerif the player is near the provided coordinates.protected voidThreadedAnvilChunkStorage.sendWatchPackets(ServerPlayerEntity player, ChunkPos pos, MutableObject<ChunkDataS2CPacket> packet, boolean oldWithinViewDistance, boolean newWithinViewDistance) <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) Spawns a particle visible toviewer, if the viewer is near the provided coordinates.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.Method parameters in net.minecraft.server.world with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanSleepManager.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) Returns the list of players filtered usingpredicate.ServerWorld.getPlayers(Predicate<? super ServerPlayerEntity> predicate, int limit) Returns the list of players filtered usingpredicate, up tolimit.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. -
Uses of ServerPlayerEntity in net.minecraft.stat
Methods in net.minecraft.stat with parameters of type ServerPlayerEntity -
Uses of ServerPlayerEntity in net.minecraft.village.raid
Methods in net.minecraft.village.raid that return types with arguments of type ServerPlayerEntityMethods in net.minecraft.village.raid with parameters of type ServerPlayerEntity -
Uses of ServerPlayerEntity in net.minecraft.world
Fields in net.minecraft.world with type parameters of type ServerPlayerEntityModifier and TypeFieldDescriptionprivate final Long2ObjectMap<List<ServerPlayerEntity>>SpawnDensityCapper.chunkPosToMobSpawnablePlayersprivate final Map<ServerPlayerEntity,SpawnDensityCapper.DensityCap> SpawnDensityCapper.playersToDensityCapMethods in net.minecraft.world that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate List<ServerPlayerEntity>SpawnDensityCapper.getMobSpawnablePlayers(ChunkPos chunkPos)