Uses of Class
net.minecraft.server.network.ServerPlayerEntity
Packages that use ServerPlayerEntity
Package
Description
-
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) AdvancementFrame.getChatAnnouncementText(AdvancementEntry advancementEntry, ServerPlayerEntity player) voidPlayerAdvancementTracker.sendUpdate(ServerPlayerEntity player, boolean showToast) 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 damageSource, float dealt, float taken, boolean blocked) booleanLevitationCriterion.Conditions.matches(ServerPlayerEntity player, Vec3d distance, int duration) booleanPlayerHurtEntityCriterion.Conditions.matches(ServerPlayerEntity player, LootContext entity, DamageSource damageSource, float dealt, float taken, boolean blocked) booleanOnKilledCriterion.Conditions.test(ServerPlayerEntity player, LootContext entity, DamageSource killingBlow) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entity) protected voidAbstractCriterion.trigger(ServerPlayerEntity player, Predicate<T> predicate) voidAnyBlockUseCriterion.trigger(ServerPlayerEntity player, BlockPos pos, ItemStack stack) 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, RegistryEntry<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) voidDefaultBlockUseCriterion.trigger(ServerPlayerEntity player, BlockPos pos) 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) voidFallAfterExplosionCriterion.trigger(ServerPlayerEntity player, Vec3d startPosition, @Nullable Entity cause) 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) voidKilledByArrowCriterion.trigger(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities, @Nullable ItemStack weapon) 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, RegistryKey<LootTable> lootTable) 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, RegistryKey<Recipe<?>> recipeKey, List<ItemStack> ingredients) voidRecipeUnlockedCriterion.trigger(ServerPlayerEntity player, RecipeEntry<?> 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.LivingEntity.createTracker(ServerPlayerEntity receiver) voidEntity.onStartedTrackingBy(ServerPlayerEntity player) Called whenplayerstarts tracking this entity.voidEntity.onStoppedTrackingBy(ServerPlayerEntity player) Called whenplayerstops tracking this entity.private intExperienceOrbEntity.repairPlayerGears(ServerPlayerEntity player, int amount) Repairs a player's gears using the experience recursively, until the experience is all used or all gears are repaired.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.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
Fields in net.minecraft.entity.passive with type parameters of type ServerPlayerEntityMethods 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.entity.player
Methods in net.minecraft.entity.player with parameters of type ServerPlayerEntity -
Uses of ServerPlayerEntity in net.minecraft.item
Methods in net.minecraft.item with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate intItemStack.calculateDamage(int baseDamage, ServerWorld world, @Nullable ServerPlayerEntity player) voidItemStack.damage(int amount, ServerWorld world, @Nullable ServerPlayerEntity player, Consumer<Item> breakCallback) Damages this item stack.private Vec3dMaceItem.getCurrentExplosionImpactPos(ServerPlayerEntity player) private voidItemStack.onDurabilityChange(int damage, @Nullable ServerPlayerEntity player, Consumer<Item> breakCallback) -
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 TypeMethodDescriptiondefault booleanRecipeUnlocker.shouldCraftRecipe(ServerPlayerEntity player, RecipeEntry<?> recipe) -
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.isAlreadyConnected(String playerName) PlayerManager.respawnPlayer(ServerPlayerEntity player, boolean alive, Entity.RemovalReason removalReason) 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) voidPlayerManager.onPlayerConnect(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData) voidPlayerManager.remove(ServerPlayerEntity player) PlayerManager.respawnPlayer(ServerPlayerEntity player, boolean alive, Entity.RemovalReason removalReason) protected voidPlayerManager.savePlayerData(ServerPlayerEntity player) voidPlayerManager.sendCommandTree(ServerPlayerEntity player) private voidPlayerManager.sendCommandTree(ServerPlayerEntity player, int permissionLevel) private voidMinecraftServer.sendDifficulty(ServerPlayerEntity player) voidServerTickManager.sendPackets(ServerPlayerEntity player) voidPlayerManager.sendPlayerStatus(ServerPlayerEntity player) protected voidPlayerManager.sendScoreboard(ServerScoreboard scoreboard, ServerPlayerEntity player) voidPlayerManager.sendStatusEffects(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 that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate static Collection<ServerPlayerEntity> PlaySoundCommand.toList(@Nullable ServerPlayerEntity player) Methods in net.minecraft.server.command with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate static booleanGameModeCommand.execute(ServerCommandSource source, ServerPlayerEntity target, GameMode gameMode) static voidGameModeCommand.execute(ServerPlayerEntity target, GameMode gameMode) private static intSpectateCommand.execute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) private static intTriggerCommand.executeAdd(ServerCommandSource source, ServerPlayerEntity player, ScoreboardObjective objective, int amount) private static intDebugConfigCommand.executeConfig(ServerCommandSource source, ServerPlayerEntity player) private static intExperienceCommand.executeQuery(ServerCommandSource source, ServerPlayerEntity player, ExperienceCommand.Component component) private static intTriggerCommand.executeSet(ServerCommandSource source, ServerPlayerEntity player, ScoreboardObjective objective, int value) private static intTriggerCommand.executeSimple(ServerCommandSource source, ServerPlayerEntity player, ScoreboardObjective objective) RaidCommand.getRaid(ServerPlayerEntity player) intAdvancementCommand.Operation.processAll(ServerPlayerEntity player, Iterable<AdvancementEntry> advancements, boolean skipSync) protected abstract booleanAdvancementCommand.Operation.processEach(ServerPlayerEntity player, AdvancementEntry advancement) protected abstract booleanAdvancementCommand.Operation.processEachCriterion(ServerPlayerEntity player, AdvancementEntry 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.private static Collection<ServerPlayerEntity> PlaySoundCommand.toList(@Nullable ServerPlayerEntity player) 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) 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 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, PosArgument rotation) 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<AdvancementEntry> selection) private static intAdvancementCommand.executeAdvancement(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<AdvancementEntry> selection, boolean skipSync) private static intDialogCommand.executeClear(ServerCommandSource source, Collection<ServerPlayerEntity> players) private static intTitleCommand.executeClear(ServerCommandSource source, Collection<ServerPlayerEntity> targets) private static intAdvancementCommand.executeCriterion(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, AdvancementEntry 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<RecipeEntry<?>> 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 intDialogCommand.executeShow(ServerCommandSource source, Collection<ServerPlayerEntity> players, RegistryEntry<Dialog> dialog) private static intRecipeCommand.executeTake(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<RecipeEntry<?>> 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.debug
Fields in net.minecraft.server.debug with type parameters of type ServerPlayerEntityModifier and TypeFieldDescriptionprivate final Map<DebugSubscriptionType<?>, List<ServerPlayerEntity>> SubscriberTracker.subscribersMethods in net.minecraft.server.debug that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate List<ServerPlayerEntity> SubscriberTracker.getSubscribers(DebugSubscriptionType<?> type) Methods in net.minecraft.server.debug with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionbooleanSubscriberTracker.canSubscribe(ServerPlayerEntity player) protected voidTrackedSubscription.sendInitial(ServerPlayerEntity player, Entity entity) protected voidTrackedSubscription.sendInitial(ServerPlayerEntity player, ChunkPos chunkPos) protected voidTrackedSubscription.TrackedPoi.sendInitial(ServerPlayerEntity player, ChunkPos chunkPos) protected voidTrackedSubscription.TrackedVillageSections.sendInitial(ServerPlayerEntity player, ChunkPos chunkPos) protected voidTrackedSubscription.UpdateTrackedSubscription.sendInitial(ServerPlayerEntity player, Entity entity) protected voidTrackedSubscription.UpdateTrackedSubscription.sendInitial(ServerPlayerEntity player, ChunkPos chunkPos) voidSubscriptionTracker.sendInitialIfSubscribed(ServerPlayerEntity player, Entity entity) voidSubscriptionTracker.sendInitialIfSubscribed(ServerPlayerEntity player, ChunkPos chunkPos) final voidTrackedSubscription.sendInitialIfSubscribed(ServerPlayerEntity player, Entity entity) final voidTrackedSubscription.sendInitialIfSubscribed(ServerPlayerEntity player, ChunkPos chunkPos) private voidTrackedSubscription.startTracking(ServerPlayerEntity player) -
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.dedicated.command
Method parameters in net.minecraft.server.dedicated.command with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate static intTransferCommand.executeTransfer(ServerCommandSource source, String host, int port, Collection<ServerPlayerEntity> players) -
Uses of ServerPlayerEntity in net.minecraft.server.dedicated.management
Methods in net.minecraft.server.dedicated.management with parameters of type ServerPlayerEntity -
Uses of ServerPlayerEntity in net.minecraft.server.dedicated.management.dispatch
Methods in net.minecraft.server.dedicated.management.dispatch that return ServerPlayerEntityModifier and TypeMethodDescriptionprivate static @Nullable ServerPlayerEntityPlayersRpcDispatcher.getPlayer(ManagementHandlerDispatcher dispatcher, RpcPlayer player) Methods in net.minecraft.server.dedicated.management.dispatch that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionprivate static List<ServerPlayerEntity> IpBansRpcDispatcher.banIp(ManagementHandlerDispatcher dispatcher, IpBansRpcDispatcher.IpBanInfo ipBanInfo, ManagementConnectionId remote) private static List<ServerPlayerEntity> IpBansRpcDispatcher.banIpFromRpcEntry(ManagementHandlerDispatcher dispatcher, IpBansRpcDispatcher.IncomingRpcIpBanData entry, ManagementConnectionId remote) Methods in net.minecraft.server.dedicated.management.dispatch with parameters of type ServerPlayerEntityModifier and TypeMethodDescription(package private) IpBansRpcDispatcher.IpBanInfoIpBansRpcDispatcher.IncomingRpcIpBanData.toIpBanInfoFromPlayer(ServerPlayerEntity player) -
Uses of ServerPlayerEntity in net.minecraft.server.dedicated.management.handler
Methods in net.minecraft.server.dedicated.management.handler that return ServerPlayerEntityModifier and TypeMethodDescriptionMethods in net.minecraft.server.dedicated.management.handler that return types with arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionPlayerListManagementHandler.getPlayerList()PlayerListManagementHandlerImpl.getPlayerList()PlayerListManagementHandler.getPlayersByIpAddress(String ipAddress) PlayerListManagementHandlerImpl.getPlayersByIpAddress(String ipAddress) Methods in net.minecraft.server.dedicated.management.handler with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidPlayerListManagementHandler.removePlayer(ServerPlayerEntity player, ManagementConnectionId remote) voidPlayerListManagementHandlerImpl.removePlayer(ServerPlayerEntity player, ManagementConnectionId remote) Method parameters in net.minecraft.server.dedicated.management.handler with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidServerManagementHandler.sendMessageTo(Text message, boolean overlay, Collection<ServerPlayerEntity> players, ManagementConnectionId remote) voidServerManagementHandlerImpl.sendMessageTo(Text message, boolean overlay, Collection<ServerPlayerEntity> players, ManagementConnectionId remote) -
Uses of ServerPlayerEntity in net.minecraft.server.dedicated.management.listener
Methods in net.minecraft.server.dedicated.management.listener with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidBlankManagementListener.onPlayerJoined(ServerPlayerEntity player) voidCompositeManagementListener.onPlayerJoined(ServerPlayerEntity player) voidManagementListener.onPlayerJoined(ServerPlayerEntity player) voidNotificationManagementListener.onPlayerJoined(ServerPlayerEntity player) voidBlankManagementListener.onPlayerLeft(ServerPlayerEntity player) voidCompositeManagementListener.onPlayerLeft(ServerPlayerEntity player) voidManagementListener.onPlayerLeft(ServerPlayerEntity player) voidNotificationManagementListener.onPlayerLeft(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 final ServerPlayerEntityServerItemCooldownManager.playerprotected final ServerPlayerEntityServerPlayerInteractionManager.playerServerPlayNetworkHandler.playerFields in net.minecraft.server.network with type parameters of type ServerPlayerEntityModifier and TypeFieldDescriptionprivate final Set<ServerPlayerEntity> ServerWaypointHandler.playersprivate final Table<ServerPlayerEntity, ServerWaypoint, ServerWaypoint.WaypointTracker> ServerWaypointHandler.trackersMethods in net.minecraft.server.network that return ServerPlayerEntityModifier and TypeMethodDescriptionPlayerAssociatedNetworkHandler.getPlayer()ServerPlayNetworkHandler.getPlayer()PrepareSpawnTask.onReady(ClientConnection connection, ConnectedClientData clientData) PrepareSpawnTask.PlayerSpawn.onReady(ClientConnection connection, ConnectedClientData clientData) ServerPlayerEntity.teleportTo(TeleportTarget teleportTarget) Methods in net.minecraft.server.network with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidServerWaypointHandler.addPlayer(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) private static booleanServerWaypointHandler.isLocatorBarEnabled(ServerPlayerEntity player) intServerRecipeBook.lockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) private voidServerWaypointHandler.refreshTracking(ServerPlayerEntity player, ServerWaypoint waypoint) private voidServerWaypointHandler.refreshTracking(ServerPlayerEntity player, ServerWaypoint waypoint, ServerWaypoint.WaypointTracker tracker) voidServerWaypointHandler.removePlayer(ServerPlayerEntity player) ServerPlayNetworkHandler.Interaction.run(ServerPlayerEntity player, Entity entity, Hand hand) voidChunkDataSender.sendChunkBatches(ServerPlayerEntity player) voidServerRecipeBook.sendInitRecipesPacket(ServerPlayerEntity player) voidEntityTrackerEntry.sendPackets(ServerPlayerEntity player, Consumer<Packet<ClientPlayPacketListener>> sender) voidServerPlayerEntity.setSpawnPointFrom(ServerPlayerEntity player) booleanServerPlayerEntity.shouldFilterMessagesSentTo(ServerPlayerEntity player) voidEntityTrackerEntry.startTracking(ServerPlayerEntity player) voidEntityTrackerEntry.stopTracking(ServerPlayerEntity player) voidChunkDataSender.unload(ServerPlayerEntity player, ChunkPos pos) intServerRecipeBook.unlockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) voidServerWaypointHandler.updatePlayerPos(ServerPlayerEntity player) Method parameters in net.minecraft.server.network with type arguments of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidEntityTrackerEntry.TrackerPacketSender.sendToListenersIf(Packet<? super ClientPlayPacketListener> packet, Predicate<ServerPlayerEntity> predicate) Constructors in net.minecraft.server.network with parameters of type ServerPlayerEntityModifierConstructorDescriptionServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData) -
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>> ChunkLevelManager.playersByChunkPosprivate final Object2BooleanMap<ServerPlayerEntity> PlayerChunkWatchingManager.watchingPlayersMethods in net.minecraft.server.world that return ServerPlayerEntityModifier and TypeMethodDescriptionServerWorld.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()ServerChunkLoadingManager.getPlayersWatchingChunk(ChunkPos pos) ServerChunkLoadingManager.getPlayersWatchingChunk(ChunkPos chunkPos, boolean onlyOnWatchDistanceEdge) Methods in net.minecraft.server.world with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionvoidPlayerChunkWatchingManager.add(ServerPlayerEntity player, boolean inactive) private voidServerWorld.addPlayer(ServerPlayerEntity player) private booleanServerChunkLoadingManager.canTickChunk(ServerPlayerEntity player, ChunkPos pos) Returns whether theplayercan tick the chunk atpos.voidPlayerChunkWatchingManager.disableWatch(ServerPlayerEntity player) private booleanServerChunkLoadingManager.doesNotGenerateChunks(ServerPlayerEntity player) voidPlayerChunkWatchingManager.enableWatch(ServerPlayerEntity player) voidServerChunkLoadingManager.forEachEntityTrackedBy(ServerPlayerEntity player, Consumer<Entity> action) (package private) intServerChunkLoadingManager.getViewDistance(ServerPlayerEntity player) voidChunkLevelManager.handleChunkEnter(ChunkSectionPos pos, ServerPlayerEntity player) voidChunkLevelManager.handleChunkLeave(ChunkSectionPos pos, ServerPlayerEntity player) (package private) voidServerChunkLoadingManager.handlePlayerAddedOrRemoved(ServerPlayerEntity player, boolean added) private booleanServerChunkLoadingManager.isOnTrackEdge(ServerPlayerEntity player, int chunkX, int chunkZ) booleanServerChunkLoadingManager.isTracked(ServerPlayerEntity player, int chunkX, int chunkZ) booleanPlayerChunkWatchingManager.isWatchDisabled(ServerPlayerEntity player) booleanPlayerChunkWatchingManager.isWatchInactive(ServerPlayerEntity player) 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.voidPlayerChunkWatchingManager.remove(ServerPlayerEntity player) voidServerWorld.removePlayer(ServerPlayerEntity player, Entity.RemovalReason reason) private booleanServerWorld.sendToPlayerIfNearby(ServerPlayerEntity player, boolean force, double x, double y, double z, Packet<?> packet) Sends thepackettoplayerif the player is near the provided coordinates.private voidServerChunkLoadingManager.sendWatchPackets(ServerPlayerEntity player) private voidServerChunkLoadingManager.sendWatchPackets(ServerPlayerEntity player, ChunkFilter chunkFilter) <T extends ParticleEffect>
booleanServerWorld.spawnParticles(ServerPlayerEntity viewer, T parameters, boolean force, boolean important, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double speed) Spawns a particle visible toviewer, if the viewer is near the provided coordinates.voidServerChunkLoadingManager.EntityTracker.stopTracking(ServerPlayerEntity player) private voidServerChunkLoadingManager.track(ServerPlayerEntity player, ChunkPos pos) private static voidServerChunkLoadingManager.track(ServerPlayerEntity player, WorldChunk chunk) private static voidServerChunkLoadingManager.untrack(ServerPlayerEntity player, ChunkPos pos) voidServerChunkLoadingManager.updatePosition(ServerPlayerEntity player) Updates the chunk section position of theplayer.voidServerChunkManager.updatePosition(ServerPlayerEntity player) Updates the chunk section position of theplayer.voidServerChunkLoadingManager.EntityTracker.updateTrackedStatus(ServerPlayerEntity player) Updates the tracked status of this tracker's entity for theplayer.private voidServerChunkLoadingManager.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.private voidChunkHolder.sendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos) private voidChunkHolder.sendPacketToPlayers(List<ServerPlayerEntity> players, Packet<?> packet) voidServerChunkLoadingManager.EntityTracker.sendToListenersIf(Packet<? super ClientPlayPacketListener> packet, Predicate<ServerPlayerEntity> predicate) voidServerChunkLoadingManager.sendToOtherNearbyPlayersIf(Entity entity, Packet<? super ClientPlayPacketListener> packet, Predicate<ServerPlayerEntity> predicate) private voidChunkHolder.tryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state) booleanSleepManager.update(List<ServerPlayerEntity> players) Updates the sleeping player and total player counts.voidServerChunkLoadingManager.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.test
Methods in net.minecraft.test that return ServerPlayerEntityModifier and TypeMethodDescriptionTestContext.createMockCreativeServerPlayerInWorld()Deprecated, for removal: This API element is subject to removal in a future version. -
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 ServerPlayerEntityModifier and TypeMethodDescriptionbooleanRaid.start(ServerPlayerEntity player) RaidManager.startRaid(ServerPlayerEntity player, BlockPos pos) -
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) Methods in net.minecraft.world with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic TeleportTargetTeleportTarget.missingSpawnBlock(ServerPlayerEntity player, TeleportTarget.PostDimensionTransition postDimensionTransition) static TeleportTargetTeleportTarget.noRespawnPointSet(ServerPlayerEntity player, TeleportTarget.PostDimensionTransition postDimensionTransition) -
Uses of ServerPlayerEntity in net.minecraft.world.waypoint
Fields in net.minecraft.world.waypoint declared as ServerPlayerEntityModifier and TypeFieldDescriptionprivate final ServerPlayerEntityServerWaypoint.AzimuthWaypointTracker.receiverprivate final ServerPlayerEntityServerWaypoint.ChunkWaypointTracker.receiverprivate final ServerPlayerEntityServerWaypoint.PositionalWaypointTracker.receiverMethods in net.minecraft.world.waypoint with parameters of type ServerPlayerEntityModifier and TypeMethodDescriptionstatic booleanServerWaypoint.cannotReceive(LivingEntity source, ServerPlayerEntity receiver) static booleanServerWaypoint.canReceive(ChunkPos source, ServerPlayerEntity receiver) ServerWaypoint.createTracker(ServerPlayerEntity receiver) static booleanServerWaypoint.shouldUseAzimuth(LivingEntity source, ServerPlayerEntity receiver) Constructors in net.minecraft.world.waypoint with parameters of type ServerPlayerEntityModifierConstructorDescriptionAzimuthWaypointTracker(LivingEntity source, Waypoint.Config config, ServerPlayerEntity receiver) ChunkWaypointTracker(LivingEntity source, Waypoint.Config config, ServerPlayerEntity receiver) PositionalWaypointTracker(LivingEntity source, Waypoint.Config config, ServerPlayerEntity receiver)