Uses of Class
net.minecraft.server.level.ServerPlayer
Package
Description
-
Uses of ServerPlayer in net.minecraft.advancements
-
Uses of ServerPlayer in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createContext
(ServerPlayer p_36617_, Entity p_36618_) boolean
DamagePredicate.matches
(ServerPlayer p_24918_, DamageSource p_24919_, float p_24920_, float p_24921_, boolean p_24922_) boolean
DamageSourcePredicate.matches
(ServerPlayer p_25449_, DamageSource p_25450_) boolean
EffectsChangedTrigger.TriggerInstance.matches
(ServerPlayer p_149275_, LootContext p_149276_) boolean
EntityHurtPlayerTrigger.TriggerInstance.matches
(ServerPlayer p_35201_, DamageSource p_35202_, float p_35203_, float p_35204_, boolean p_35205_) boolean
EntityPredicate.matches
(ServerPlayer p_36612_, Entity p_36613_) boolean
KilledTrigger.TriggerInstance.matches
(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) boolean
LevitationTrigger.TriggerInstance.matches
(ServerPlayer p_49141_, Vec3 p_49142_, int p_49143_) boolean
PickedUpItemTrigger.TriggerInstance.matches
(ServerPlayer p_221323_, ItemStack p_221324_, LootContext p_221325_) boolean
PlayerHurtEntityTrigger.TriggerInstance.matches
(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) void
BeeNestDestroyedTrigger.trigger
(ServerPlayer p_146652_, BlockState p_146653_, ItemStack p_146654_, int p_146655_) void
BredAnimalsTrigger.trigger
(ServerPlayer p_147279_, Animal p_147280_, Animal p_147281_, AgeableMob p_147282_) void
BrewedPotionTrigger.trigger
(ServerPlayer p_19121_, Potion p_19122_) void
ChangeDimensionTrigger.trigger
(ServerPlayer p_19758_, ResourceKey<Level> p_19759_, ResourceKey<Level> p_19760_) void
ChanneledLightningTrigger.trigger
(ServerPlayer p_21722_, Collection<? extends Entity> p_21723_) void
ConstructBeaconTrigger.trigger
(ServerPlayer p_148030_, int p_148031_) void
ConsumeItemTrigger.trigger
(ServerPlayer p_23683_, ItemStack p_23684_) void
CuredZombieVillagerTrigger.trigger
(ServerPlayer p_24275_, Zombie p_24276_, Villager p_24277_) void
DistanceTrigger.trigger
(ServerPlayer p_186166_, Vec3 p_186167_) void
EffectsChangedTrigger.trigger
(ServerPlayer p_149263_, Entity p_149264_) void
EnchantedItemTrigger.trigger
(ServerPlayer p_27669_, ItemStack p_27670_, int p_27671_) void
EnterBlockTrigger.trigger
(ServerPlayer p_31270_, BlockState p_31271_) void
EntityHurtPlayerTrigger.trigger
(ServerPlayer p_35175_, DamageSource p_35176_, float p_35177_, float p_35178_, boolean p_35179_) void
FilledBucketTrigger.trigger
(ServerPlayer p_38773_, ItemStack p_38774_) void
FishingRodHookedTrigger.trigger
(ServerPlayer p_40417_, ItemStack p_40418_, FishingHook p_40419_, Collection<ItemStack> p_40420_) void
InventoryChangeTrigger.trigger
(ServerPlayer p_43150_, Inventory p_43151_, ItemStack p_43152_) private void
InventoryChangeTrigger.trigger
(ServerPlayer p_43154_, Inventory p_43155_, ItemStack p_43156_, int p_43157_, int p_43158_, int p_43159_) void
ItemDurabilityTrigger.trigger
(ServerPlayer p_43670_, ItemStack p_43671_, int p_43672_) void
ItemInteractWithBlockTrigger.trigger
(ServerPlayer p_220041_, BlockPos p_220042_, ItemStack p_220043_) void
KilledByCrossbowTrigger.trigger
(ServerPlayer p_46872_, Collection<Entity> p_46873_) void
KilledTrigger.trigger
(ServerPlayer p_48105_, Entity p_48106_, DamageSource p_48107_) void
LevitationTrigger.trigger
(ServerPlayer p_49117_, Vec3 p_49118_, int p_49119_) void
LightningStrikeTrigger.trigger
(ServerPlayer p_153392_, LightningBolt p_153393_, List<Entity> p_153394_) void
LootTableTrigger.trigger
(ServerPlayer p_54598_, ResourceLocation p_54599_) void
PickedUpItemTrigger.trigger
(ServerPlayer p_221299_, ItemStack p_221300_, Entity p_221301_) void
PlacedBlockTrigger.trigger
(ServerPlayer p_59470_, BlockPos p_59471_, ItemStack p_59472_) void
PlayerHurtEntityTrigger.trigger
(ServerPlayer p_60113_, Entity p_60114_, DamageSource p_60115_, float p_60116_, float p_60117_, boolean p_60118_) void
PlayerInteractTrigger.trigger
(ServerPlayer p_61495_, ItemStack p_61496_, Entity p_61497_) void
PlayerTrigger.trigger
(ServerPlayer p_222619_) void
RecipeUnlockedTrigger.trigger
(ServerPlayer p_63719_, Recipe<?> p_63720_) void
ShotCrossbowTrigger.trigger
(ServerPlayer p_65463_, ItemStack p_65464_) protected void
SimpleCriterionTrigger.trigger
(ServerPlayer p_66235_, Predicate<T> p_66236_) void
SlideDownBlockTrigger.trigger
(ServerPlayer p_66979_, BlockState p_66980_) void
StartRidingTrigger.trigger
(ServerPlayer p_160388_) void
SummonedEntityTrigger.trigger
(ServerPlayer p_68257_, Entity p_68258_) void
TameAnimalTrigger.trigger
(ServerPlayer p_68830_, Animal p_68831_) void
TargetBlockTrigger.trigger
(ServerPlayer p_70212_, Entity p_70213_, Vec3 p_70214_, int p_70215_) void
TradeTrigger.trigger
(ServerPlayer p_70960_, AbstractVillager p_70961_, ItemStack p_70962_) void
UsedEnderEyeTrigger.trigger
(ServerPlayer p_73936_, BlockPos p_73937_) void
UsedTotemTrigger.trigger
(ServerPlayer p_74432_, ItemStack p_74433_) void
UsingItemTrigger.trigger
(ServerPlayer p_163866_, ItemStack p_163867_) -
Uses of ServerPlayer in net.minecraft.client.server
Modifier and TypeMethodDescriptionprotected void
IntegratedPlayerList.save
(ServerPlayer p_120011_) -
Uses of ServerPlayer in net.minecraft.commands
Modifier and TypeMethodDescriptionCommandSourceStack.getPlayer()
CommandSourceStack.getPlayerOrException()
Modifier and TypeMethodDescriptionvoid
Commands.sendCommands
(ServerPlayer p_82096_) boolean
CommandSourceStack.shouldFilterMessageTo
(ServerPlayer p_243268_) -
Uses of ServerPlayer in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic ServerPlayer
EntityArgument.getPlayer
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_91475_, String p_91476_) Modifier and TypeMethodDescriptionstatic Collection<ServerPlayer>
EntityArgument.getOptionalPlayers
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_91472_, String p_91473_) static Collection<ServerPlayer>
EntityArgument.getPlayers
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_91478_, String p_91479_) -
Uses of ServerPlayer in net.minecraft.commands.arguments.selector
-
Uses of ServerPlayer in net.minecraft.network.chat
Modifier and TypeFieldDescriptionprivate final Set<ServerPlayer>
OutgoingPlayerChatMessage.Tracked.playersWithFullMessage
Modifier and TypeMethodDescriptionChatDecorator.decorate
(ServerPlayer p_236962_, Component p_236963_) default CompletableFuture<PlayerChatMessage>
ChatDecorator.decorate
(ServerPlayer p_243328_, PlayerChatMessage p_243294_) void
OutgoingPlayerChatMessage.NotTracked.sendToPlayer
(ServerPlayer p_243208_, boolean p_243217_, ChatType.Bound p_243207_) void
OutgoingPlayerChatMessage.sendToPlayer
(ServerPlayer p_241554_, boolean p_243298_, ChatType.Bound p_241444_) void
OutgoingPlayerChatMessage.Tracked.sendToPlayer
(ServerPlayer p_243241_, boolean p_243304_, ChatType.Bound p_243225_) -
Uses of ServerPlayer in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionprivate static ClientboundPlayerInfoPacket.PlayerUpdate
ClientboundPlayerInfoPacket.createPlayerUpdate
(ServerPlayer p_237773_) ServerboundChatPacket.getSigner
(ServerPlayer p_241405_) ModifierConstructorDescriptionClientboundPlayerInfoPacket
(ClientboundPlayerInfoPacket.Action p_132724_, ServerPlayer... p_132725_) ModifierConstructorDescriptionClientboundPlayerInfoPacket
(ClientboundPlayerInfoPacket.Action p_179083_, Collection<ServerPlayer> p_179084_) -
Uses of ServerPlayer in net.minecraft.recipebook
Modifier and TypeMethodDescriptionvoid
ServerPlaceRecipe.recipeClicked
(ServerPlayer p_135435_, Recipe<C> p_135436_, boolean p_135437_) -
Uses of ServerPlayer in net.minecraft.server
Modifier and TypeMethodDescriptionMinecraftServer.createGameModeForPlayer
(ServerPlayer p_177934_) MinecraftServer.createTextFilterForPlayer
(ServerPlayer p_129814_) void
PlayerAdvancements.flushDirty
(ServerPlayer p_135993_) private void
MinecraftServer.sendDifficultyUpdate
(ServerPlayer p_129939_) void
PlayerAdvancements.setPlayer
(ServerPlayer p_135980_) ModifierConstructorDescriptionPlayerAdvancements
(com.mojang.datafixers.DataFixer p_135973_, PlayerList p_135974_, ServerAdvancementManager p_135975_, File p_135976_, ServerPlayer p_135977_) -
Uses of ServerPlayer in net.minecraft.server.bossevents
Modifier and TypeMethodDescriptionvoid
CustomBossEvent.addPlayer
(ServerPlayer p_136267_) void
CustomBossEvent.onPlayerConnect
(ServerPlayer p_136284_) void
CustomBossEvents.onPlayerConnect
(ServerPlayer p_136294_) void
CustomBossEvent.onPlayerDisconnect
(ServerPlayer p_136287_) void
CustomBossEvents.onPlayerDisconnect
(ServerPlayer p_136306_) void
CustomBossEvent.removePlayer
(ServerPlayer p_136281_) Modifier and TypeMethodDescriptionboolean
CustomBossEvent.setPlayers
(Collection<ServerPlayer> p_136269_) -
Uses of ServerPlayer in net.minecraft.server.commands
Modifier and TypeFieldDescriptionfinal BiConsumer<ServerPlayer,
Integer> ExperienceCommand.Type.add
(package private) final ToIntFunction<ServerPlayer>
ExperienceCommand.Type.query
final BiPredicate<ServerPlayer,
Integer> ExperienceCommand.Type.set
Modifier and TypeMethodDescriptionprivate static Raid
RaidCommand.getRaid
(ServerPlayer p_180467_) private static Score
TriggerCommand.getScore
(ServerPlayer p_139139_, Objective p_139140_) private static void
GameModeCommand.logGamemodeChange
(CommandSourceStack p_137738_, ServerPlayer p_137739_, GameType p_137740_) int
AdvancementCommands.Action.perform
(ServerPlayer p_136380_, Iterable<Advancement> p_136381_) protected abstract boolean
AdvancementCommands.Action.perform
(ServerPlayer p_136382_, Advancement p_136383_) protected abstract boolean
AdvancementCommands.Action.performCriterion
(ServerPlayer p_136384_, Advancement p_136385_, String p_136386_) private static int
ExperienceCommand.queryExperience
(CommandSourceStack p_137313_, ServerPlayer p_137314_, ExperienceCommand.Type p_137315_) private static int
SpectateCommand.spectate
(CommandSourceStack p_138684_, Entity p_138685_, ServerPlayer p_138686_) Modifier and TypeMethodDescriptionprivate static int
ExperienceCommand.addExperience
(CommandSourceStack p_137317_, Collection<? extends ServerPlayer> p_137318_, int p_137319_, ExperienceCommand.Type p_137320_) private static int
ClearInventoryCommands.clearInventory
(CommandSourceStack p_136706_, Collection<ServerPlayer> p_136707_, Predicate<ItemStack> p_136708_, int p_136709_) private static int
TitleCommand.clearTitle
(CommandSourceStack p_139109_, Collection<ServerPlayer> p_139110_) private static int
ListPlayersCommand.format
(CommandSourceStack p_137827_, Function<ServerPlayer, Component> p_137828_) private static int
GiveCommand.giveItem
(CommandSourceStack p_137779_, ItemInput p_137780_, Collection<ServerPlayer> p_137781_, int p_137782_) private static int
RecipeCommand.giveRecipes
(CommandSourceStack p_138207_, Collection<ServerPlayer> p_138208_, Collection<Recipe<?>> p_138209_) private static int
KickCommand.kickPlayers
(CommandSourceStack p_137802_, Collection<ServerPlayer> p_137803_, Component p_137804_) private static int
AdvancementCommands.perform
(CommandSourceStack p_136320_, Collection<ServerPlayer> p_136321_, AdvancementCommands.Action p_136322_, Collection<Advancement> p_136323_) private static int
AdvancementCommands.performCriterion
(CommandSourceStack p_136325_, Collection<ServerPlayer> p_136326_, AdvancementCommands.Action p_136327_, Advancement p_136328_, String p_136329_) private static int
LootCommand.playerGive
(Collection<ServerPlayer> p_137985_, List<ItemStack> p_137986_, LootCommand.Callback p_137987_) private static int
PlaySoundCommand.playSound
(CommandSourceStack p_138161_, Collection<ServerPlayer> p_138162_, ResourceLocation p_138163_, SoundSource p_138164_, Vec3 p_138165_, float p_138166_, float p_138167_, float p_138168_) private static int
TitleCommand.resetTitle
(CommandSourceStack p_139125_, Collection<ServerPlayer> p_139126_) private static int
MsgCommand.sendMessage
(CommandSourceStack p_214523_, Collection<ServerPlayer> p_214524_, MessageArgument.ChatMessage p_214525_) private static int
ParticleCommand.sendParticles
(CommandSourceStack p_138129_, ParticleOptions p_138130_, Vec3 p_138131_, Vec3 p_138132_, float p_138133_, int p_138134_, boolean p_138135_, Collection<ServerPlayer> p_138136_) private static int
ExperienceCommand.setExperience
(CommandSourceStack p_137326_, Collection<? extends ServerPlayer> p_137327_, int p_137328_, ExperienceCommand.Type p_137329_) private static int
GameModeCommand.setMode
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137732_, Collection<ServerPlayer> p_137733_, GameType p_137734_) private static int
BossBarCommands.setPlayers
(CommandSourceStack p_136611_, CustomBossEvent p_136612_, Collection<ServerPlayer> p_136613_) private static int
SetSpawnCommand.setSpawn
(CommandSourceStack p_138650_, Collection<ServerPlayer> p_138651_, BlockPos p_138652_, float p_138653_) private static int
TitleCommand.setTimes
(CommandSourceStack p_139112_, Collection<ServerPlayer> p_139113_, int p_139114_, int p_139115_, int p_139116_) private static int
TitleCommand.showTitle
(CommandSourceStack p_142781_, Collection<ServerPlayer> p_142782_, Component p_142783_, String p_142784_, Function<Component, Packet<?>> p_142785_) private static int
StopSoundCommand.stopSound
(CommandSourceStack p_138801_, Collection<ServerPlayer> p_138802_, SoundSource p_138803_, ResourceLocation p_138804_) private static int
RecipeCommand.takeRecipes
(CommandSourceStack p_138213_, Collection<ServerPlayer> p_138214_, Collection<Recipe<?>> p_138215_) ModifierConstructorDescriptionprivate
Type
(String p_137353_, BiConsumer<ServerPlayer, Integer> p_137354_, BiPredicate<ServerPlayer, Integer> p_137355_, ToIntFunction<ServerPlayer> p_137356_) private
Type
(String p_137353_, BiConsumer<ServerPlayer, Integer> p_137354_, BiPredicate<ServerPlayer, Integer> p_137355_, ToIntFunction<ServerPlayer> p_137356_) private
Type
(String p_137353_, BiConsumer<ServerPlayer, Integer> p_137354_, BiPredicate<ServerPlayer, Integer> p_137355_, ToIntFunction<ServerPlayer> p_137356_) -
Uses of ServerPlayer in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionDedicatedServer.createTextFilterForPlayer
(ServerPlayer p_139634_) -
Uses of ServerPlayer in net.minecraft.server.level
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ServerPlayer>
PlayerMap.players
private final Set<ServerPlayer>
ServerBossEvent.players
(package private) final List<ServerPlayer>
ServerLevel.players
(package private) final it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.objects.ObjectSet<ServerPlayer>>
DistanceManager.playersPerChunk
private final Set<ServerPlayer>
ServerBossEvent.unmodifiablePlayers
Modifier and TypeMethodDescriptionChunkHolder.PlayerProvider.getPlayers
(ChunkPos p_183717_, boolean p_183718_) ChunkMap.getPlayers
(ChunkPos p_183801_, boolean p_183802_) PlayerMap.getPlayers
(long p_183927_) ServerBossEvent.getPlayers()
ServerLevel.getPlayers
(Predicate<? super ServerPlayer> p_8796_) ChunkMap.getPlayersCloseForSpawning
(ChunkPos p_183889_) ServerLevel.players()
Modifier and TypeMethodDescriptionvoid
ServerLevel.addDuringCommandTeleport
(ServerPlayer p_8623_) void
ServerLevel.addDuringPortalTeleport
(ServerPlayer p_8818_) void
ServerLevel.addNewPlayer
(ServerPlayer p_8835_) void
ServerEntity.addPairing
(ServerPlayer p_8542_) void
DistanceManager.addPlayer
(SectionPos p_140803_, ServerPlayer p_140804_) void
PlayerMap.addPlayer
(long p_8253_, ServerPlayer p_8254_, boolean p_8255_) void
ServerBossEvent.addPlayer
(ServerPlayer p_8305_) private void
ServerLevel.addPlayer
(ServerPlayer p_8854_) void
ServerLevel.addRespawnedPlayer
(ServerPlayer p_8846_) boolean
ServerPlayer.broadcastToPlayer
(ServerPlayer p_9014_) boolean
PlayerMap.ignored
(ServerPlayer p_8263_) boolean
PlayerMap.ignoredOrUnknown
(ServerPlayer p_8261_) void
PlayerMap.ignorePlayer
(ServerPlayer p_8257_) void
ChunkMap.move
(ServerPlayer p_140185_) void
ServerChunkCache.move
(ServerPlayer p_8386_) private boolean
ChunkMap.playerIsCloseEnoughForSpawning
(ServerPlayer p_183752_, ChunkPos p_183753_) private void
ChunkMap.playerLoadedChunk
(ServerPlayer p_183761_, org.apache.commons.lang3.mutable.MutableObject<ClientboundLevelChunkWithLightPacket> p_183762_, LevelChunk p_183763_) void
ServerEntity.removePairing
(ServerPlayer p_8535_) void
ChunkMap.TrackedEntity.removePlayer
(ServerPlayer p_140486_) void
DistanceManager.removePlayer
(SectionPos p_140829_, ServerPlayer p_140830_) void
PlayerMap.removePlayer
(long p_8250_, ServerPlayer p_8251_) void
ServerBossEvent.removePlayer
(ServerPlayer p_8316_) void
ServerLevel.removePlayerImmediately
(ServerPlayer p_143262_, Entity.RemovalReason p_143263_) void
ServerPlayer.restoreFrom
(ServerPlayer p_9016_, boolean p_9017_) private boolean
ServerLevel.sendParticles
(ServerPlayer p_8637_, boolean p_8638_, double p_8639_, double p_8640_, double p_8641_, Packet<?> p_8642_) <T extends ParticleOptions>
booleanServerLevel.sendParticles
(ServerPlayer p_8625_, T p_8626_, boolean p_8627_, double p_8628_, double p_8629_, double p_8630_, int p_8631_, double p_8632_, double p_8633_, double p_8634_, double p_8635_) boolean
ServerPlayer.shouldFilterMessageTo
(ServerPlayer p_143422_) private boolean
ChunkMap.skipPlayer
(ServerPlayer p_140330_) void
PlayerMap.unIgnorePlayer
(ServerPlayer p_8259_) protected void
ChunkMap.updateChunkTracking
(ServerPlayer p_183755_, ChunkPos p_183756_, org.apache.commons.lang3.mutable.MutableObject<ClientboundLevelChunkWithLightPacket> p_183757_, boolean p_183758_, boolean p_183759_) void
ChunkMap.TrackedEntity.updatePlayer
(ServerPlayer p_140498_) void
PlayerMap.updatePlayer
(long p_8246_, long p_8247_, ServerPlayer p_8248_) private SectionPos
ChunkMap.updatePlayerPos
(ServerPlayer p_140374_) (package private) void
ChunkMap.updatePlayerStatus
(ServerPlayer p_140193_, boolean p_140194_) DemoMode.useItem
(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) ServerPlayerGameMode.useItem
(ServerPlayer p_9262_, Level p_9263_, ItemStack p_9264_, InteractionHand p_9265_) DemoMode.useItemOn
(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) ServerPlayerGameMode.useItemOn
(ServerPlayer p_9266_, Level p_9267_, ItemStack p_9268_, InteractionHand p_9269_, BlockHitResult p_9270_) Modifier and TypeMethodDescriptionServerLevel.getPlayers
(Predicate<? super ServerPlayer> p_8796_) void
ChunkMap.TrackedEntity.updatePlayers
(List<ServerPlayer> p_140488_) ModifierConstructorDescriptionDemoMode
(ServerPlayer p_143204_) ServerPlayerGameMode
(ServerPlayer p_143472_) -
Uses of ServerPlayer in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate ServerPlayer
ServerLoginPacketListenerImpl.delayedAcceptPlayer
ServerGamePacketListenerImpl.player
Modifier and TypeMethodDescriptionServerGamePacketListenerImpl.getPlayer()
ServerPlayerConnection.getPlayer()
Modifier and TypeMethodDescriptionprivate void
ServerLoginPacketListenerImpl.placeNewPlayer
(ServerPlayer p_143700_) ServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer p_143695_, Entity p_143696_, InteractionHand p_143697_) private static boolean
ServerGamePacketListenerImpl.wasBlockPlacementAttempt
(ServerPlayer p_9791_, ItemStack p_9792_) ModifierConstructorDescriptionServerGamePacketListenerImpl
(MinecraftServer p_9770_, Connection p_9771_, ServerPlayer p_9772_) -
Uses of ServerPlayer in net.minecraft.server.players
Modifier and TypeFieldDescriptionprivate final List<ServerPlayer>
PlayerList.players
private final Map<UUID,
ServerPlayer> PlayerList.playersByUUID
private final List<ServerPlayer>
PlayerList.playersView
Modifier and TypeMethodDescriptionPlayerList.getPlayerByName
(String p_11256_) PlayerList.getPlayerForLogin
(com.mojang.authlib.GameProfile p_215625_, ProfilePublicKey p_215626_) PlayerList.respawn
(ServerPlayer p_11237_, boolean p_11238_) Modifier and TypeMethodDescriptionPlayerList.getPlayers()
PlayerList.getPlayersWithAddress
(String p_11283_) Modifier and TypeMethodDescriptionprivate void
PlayerList.broadcastChatMessage
(PlayerChatMessage p_243322_, Predicate<ServerPlayer> p_243313_, ServerPlayer p_243233_, ChatSender p_243228_, ChatType.Bound p_243291_) void
PlayerList.broadcastChatMessage
(PlayerChatMessage p_243264_, ServerPlayer p_243234_, ChatType.Bound p_243204_) PlayerList.getPlayerAdvancements
(ServerPlayer p_11297_) PlayerList.load
(ServerPlayer p_11225_) void
PlayerList.placeNewPlayer
(Connection p_11262_, ServerPlayer p_11263_) void
PlayerList.remove
(ServerPlayer p_11287_) PlayerList.respawn
(ServerPlayer p_11237_, boolean p_11238_) protected void
PlayerList.save
(ServerPlayer p_11277_) void
PlayerList.sendAllPlayerInfo
(ServerPlayer p_11293_) void
PlayerList.sendLevelInfo
(ServerPlayer p_11230_, ServerLevel p_11231_) void
PlayerList.sendPlayerPermissionLevel
(ServerPlayer p_11290_) private void
PlayerList.sendPlayerPermissionLevel
(ServerPlayer p_11227_, int p_11228_) protected void
PlayerList.updateEntireScoreboard
(ServerScoreboard p_11274_, ServerPlayer p_11275_) Modifier and TypeMethodDescriptionboolean
SleepStatus.areEnoughDeepSleeping
(int p_144005_, List<ServerPlayer> p_144006_) private void
PlayerList.broadcastChatMessage
(PlayerChatMessage p_243322_, Predicate<ServerPlayer> p_243313_, ServerPlayer p_243233_, ChatSender p_243228_, ChatType.Bound p_243291_) void
PlayerList.broadcastMessageHeader
(PlayerChatMessage p_241532_, Set<ServerPlayer> p_241429_) void
PlayerList.broadcastSystemMessage
(Component p_240526_, Function<ServerPlayer, Component> p_240594_, boolean p_240648_) boolean
SleepStatus.update
(List<ServerPlayer> p_144008_) -
Uses of ServerPlayer in net.minecraft.stats
Modifier and TypeMethodDescriptionint
ServerRecipeBook.addRecipes
(Collection<Recipe<?>> p_12792_, ServerPlayer p_12793_) int
ServerRecipeBook.removeRecipes
(Collection<Recipe<?>> p_12807_, ServerPlayer p_12808_) void
ServerRecipeBook.sendInitialRecipeBook
(ServerPlayer p_12790_) private void
ServerRecipeBook.sendRecipes
(ClientboundRecipePacket.State p_12802_, ServerPlayer p_12803_, List<ResourceLocation> p_12804_) void
ServerStatsCounter.sendStats
(ServerPlayer p_12820_) -
Uses of ServerPlayer in net.minecraft.world.effect
Modifier and TypeMethodDescriptionstatic List<ServerPlayer>
MobEffectUtil.addEffectToPlayersAround
(ServerLevel p_216947_, Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_) -
Uses of ServerPlayer in net.minecraft.world.entity
Modifier and TypeMethodDescriptionboolean
Entity.broadcastToPlayer
(ServerPlayer p_19937_) void
LightningBolt.setCause
(ServerPlayer p_20880_) void
Entity.startSeenByPlayer
(ServerPlayer p_20119_) void
Entity.stopSeenByPlayer
(ServerPlayer p_20174_) -
Uses of ServerPlayer in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionprivate void
GoAndGiveItemsToTarget.triggerDropItemOnBlock
(PositionTracker p_217214_, ItemStack p_217215_, ServerPlayer p_217216_) -
Uses of ServerPlayer in net.minecraft.world.entity.ai.goal
-
Uses of ServerPlayer in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionboolean
ShoulderRidingEntity.setEntityOnShoulder
(ServerPlayer p_29896_) -
Uses of ServerPlayer in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionstatic Optional<ServerPlayer>
AllayAi.getLikedPlayer
(LivingEntity p_218411_) -
Uses of ServerPlayer in net.minecraft.world.entity.boss.wither
Modifier and TypeMethodDescriptionvoid
WitherBoss.startSeenByPlayer
(ServerPlayer p_31483_) void
WitherBoss.stopSeenByPlayer
(ServerPlayer p_31488_) -
Uses of ServerPlayer in net.minecraft.world.entity.monster.warden
Modifier and TypeMethodDescriptionprivate static List<ServerPlayer>
WardenSpawnTracker.getNearbyPlayers
(ServerLevel p_219595_, BlockPos p_219596_) Modifier and TypeMethodDescriptionstatic OptionalInt
WardenSpawnTracker.tryWarn
(ServerLevel p_219578_, BlockPos p_219579_, ServerPlayer p_219580_) -
Uses of ServerPlayer in net.minecraft.world.entity.raid
-
Uses of ServerPlayer in net.minecraft.world.inventory
Modifier and TypeMethodDescriptionvoid
RecipeBookMenu.handlePlacement
(boolean p_40119_, Recipe<?> p_40120_, ServerPlayer p_40121_) default boolean
RecipeHolder.setRecipeUsed
(Level p_40136_, ServerPlayer p_40137_, Recipe<?> p_40138_) -
Uses of ServerPlayer in net.minecraft.world.item
Modifier and TypeMethodDescriptionboolean
ItemStack.hurt
(int p_220158_, RandomSource p_220159_, ServerPlayer p_220160_) -
Uses of ServerPlayer in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate final Map<ServerPlayer,
LocalMobCapCalculator.MobCounts> LocalMobCapCalculator.playerMobCounts
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<List<ServerPlayer>>
LocalMobCapCalculator.playersNearChunk
Modifier and TypeMethodDescriptionprivate List<ServerPlayer>
LocalMobCapCalculator.getPlayersNear
(ChunkPos p_186508_) -
Uses of ServerPlayer in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionstatic ServerPlayer
SculkShriekerBlockEntity.tryGetPlayer
(Entity p_222862_) Modifier and TypeMethodDescriptionvoid
AbstractFurnaceBlockEntity.awardUsedRecipesAndPopExperience
(ServerPlayer p_155004_) SignBlockEntity.createCommandSourceStack
(ServerPlayer p_59736_) boolean
SignBlockEntity.executeClickCommands
(ServerPlayer p_155710_) void
SculkShriekerBlockEntity.tryShriek
(ServerLevel p_222842_, ServerPlayer p_222843_) private boolean
SculkShriekerBlockEntity.tryToWarn
(ServerLevel p_222875_, ServerPlayer p_222876_) -
Uses of ServerPlayer in net.minecraft.world.level.dimension.end
Modifier and TypeMethodDescriptionvoid
EndDragonFight.addPlayer
(ServerPlayer player) void
EndDragonFight.removePlayer
(ServerPlayer player) -
Uses of ServerPlayer in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic void
ForgeHooks.onAdvancement
(ServerPlayer player, Advancement advancement) Deprecated, for removal: This API element is subject to removal in a future version.static int
ForgeHooks.onBlockBreakEvent
(Level level, GameType gameType, ServerPlayer entityPlayer, BlockPos pos) static @Nullable Component
ForgeHooks.onServerChatPreviewEvent
(@NotNull ServerPlayer player, @NotNull Component message) static @Nullable Component
ForgeHooks.onServerChatSubmittedEvent
(ServerPlayer player, String plain, Component decorated, boolean canChangeMessage) private static void
TierSortingRegistry.syncToPlayer
(ServerPlayer serverPlayer) -
Uses of ServerPlayer in net.minecraftforge.common.util
Modifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions.Modifier and TypeMethodDescriptiondefault boolean
ITeleporter.playTeleportSound
(ServerPlayer player, ServerLevel sourceWorld, ServerLevel destWorld) Called when vanilla wants to play the portal sound after teleporting.ModifierConstructorDescriptionCenterChunkPosComparator
(ServerPlayer entityplayer) FakePlayerNetHandler
(MinecraftServer server, ServerPlayer player) -
Uses of ServerPlayer in net.minecraftforge.debug.misc
Modifier and TypeMethodDescriptionprivate static void
OnDatapackSynctEventTest.syncData
(ServerPlayer player) -
Uses of ServerPlayer in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final @Nullable ServerPlayer
OnDatapackSyncEvent.player
private final ServerPlayer
ServerChatEvent.player
Modifier and TypeMethodDescription@Nullable ServerPlayer
OnDatapackSyncEvent.getPlayer()
ServerChatEvent.getPlayer()
Returns the player who initiated the chat action.Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.fireChunkUnWatch
(ServerPlayer entity, ChunkPos chunkpos, ServerLevel level) static void
ForgeEventFactory.fireChunkWatch
(ServerPlayer entity, LevelChunk chunk, ServerLevel level) ForgeEventFactory.onEnderPearlLand
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage) Deprecated, for removal: This API element is subject to removal in a future version.ForgeEventFactory.onEnderPearlLand
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage, @Nullable HitResult hitResult) ModifierConstructorDescriptionOnDatapackSyncEvent
(PlayerList playerList, @Nullable ServerPlayer player) Preview
(ServerPlayer player, String rawText, Component message) protected
ServerChatEvent
(ServerPlayer player, String rawText, Component message, boolean canChangeMessage) Submitted
(ServerPlayer player, String rawText, Component message, boolean canChangeMessage) -
Uses of ServerPlayer in net.minecraftforge.event.entity
Modifier and TypeFieldDescriptionprivate final ServerPlayer
EntityTeleportEvent.EnderPearl.player
ModifierConstructorDescriptionEnderPearl
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage) Deprecated, for removal: This API element is subject to removal in a future version.Use EnderPearl(ServerPlayer, double, double, double, ThrownEnderpearl, float, HitResult) the hit result-sensitive version}.EnderPearl
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage, @Nullable HitResult hitResult) -
Uses of ServerPlayer in net.minecraftforge.event.entity.player
ModifierConstructorDescriptionPermissionsChangedEvent
(ServerPlayer player, int newLevel, int oldLevel) -
Uses of ServerPlayer in net.minecraftforge.event.level
Modifier and TypeMethodDescriptionChunkWatchEvent.getPlayer()
Returns the server player involved with the watch action.ModifierConstructorDescriptionChunkWatchEvent
(ServerPlayer player, ChunkPos pos, ServerLevel level) UnWatch
(ServerPlayer player, ChunkPos pos, ServerLevel level) Watch
(ServerPlayer player, LevelChunk chunk, ServerLevel level) -
Uses of ServerPlayer in net.minecraftforge.network
Modifier and TypeFieldDescriptionprivate final ServerPlayer
PacketDistributor.TargetPoint.excluded
Modifier and TypeFieldDescriptionstatic final PacketDistributor<ServerPlayer>
PacketDistributor.PLAYER
Send to the player specified in the Supplier
PacketDistributor.with(Supplier)
PlayerModifier and TypeMethodDescription@Nullable ServerPlayer
NetworkEvent.Context.getSender()
When available, gets the sender for packets that are sent from a client to the server.Modifier and TypeMethodDescriptionstatic void
NetworkHooks.openScreen
(ServerPlayer player, MenuProvider containerSupplier) Request to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactory
for how to provide a function to consume these GUI requests on the client.static void
NetworkHooks.openScreen
(ServerPlayer player, MenuProvider containerSupplier, Consumer<FriendlyByteBuf> extraDataWriter) Request to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactory
for how to provide a function to consume these GUI requests on the client.static void
NetworkHooks.openScreen
(ServerPlayer player, MenuProvider containerSupplier, BlockPos pos) Request to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactory
for how to provide a function to consume these GUI requests on the client.static boolean
NetworkHooks.tickNegotiation
(ServerLoginPacketListenerImpl netHandlerLoginServer, Connection networkManager, ServerPlayer player) Modifier and TypeMethodDescriptionPacketDistributor.playerConsumer
(Supplier<ServerPlayer> entityPlayerMPSupplier) ModifierConstructorDescriptionTargetPoint
(ServerPlayer excluded, double x, double y, double z, double r2, ResourceKey<Level> dim) A target point with excluded entity -
Uses of ServerPlayer in net.minecraftforge.server.permission
Modifier and TypeMethodDescriptionstatic <T> T
PermissionAPI.getPermission
(ServerPlayer player, PermissionNode<T> node, PermissionDynamicContext<?>... context) Queries a player's permission for a given node and contexts -
Uses of ServerPlayer in net.minecraftforge.server.permission.handler
Modifier and TypeMethodDescription<T> T
DefaultPermissionHandler.getPermission
(ServerPlayer player, PermissionNode<T> node, PermissionDynamicContext<?>... context) <T> T
IPermissionHandler.getPermission
(ServerPlayer player, PermissionNode<T> node, PermissionDynamicContext<?>... context) -
Uses of ServerPlayer in net.minecraftforge.server.permission.nodes
Modifier and TypeMethodDescriptionPermissionNode.PermissionResolver.resolve
(@Nullable ServerPlayer player, UUID playerUUID, PermissionDynamicContext<?>... context)
ForgeEventFactory.onAdvancementEarnedEvent(net.minecraft.world.entity.player.Player, net.minecraft.advancements.Advancement)
andForgeEventFactory.onAdvancementProgressedEvent(net.minecraft.world.entity.player.Player, net.minecraft.advancements.Advancement, net.minecraft.advancements.AdvancementProgress, java.lang.String, net.minecraftforge.event.entity.player.AdvancementEvent.AdvancementProgressEvent.ProgressType)