net.minecraft.server.players

public abstract class PlayerList

aih
net.minecraft.server.players.PlayerList
net.minecraft.class_3324
net.minecraft.server.PlayerManager
net.minecraft.src.C_102_
net.minecraft.server.players.PlayerList

Field summary

Modifier and TypeField
public static final File
b
USERBANLIST_FILE
field_14355
BANNED_PLAYERS_FILE
f_11189_
public static final File
c
IPBANLIST_FILE
field_14364
BANNED_IPS_FILE
f_11190_
public static final File
d
OPLIST_FILE
field_14348
OPERATORS_FILE
f_11191_
public static final File
e
WHITELIST_FILE
field_14343
WHITELIST_FILE
f_11192_
private static final org.slf4j.Logger
a
LOGGER
field_14349
LOGGER
f_11188_
private static final int
g
SEND_PLAYER_INFO_INTERVAL
field_29790
LATENCY_UPDATE_INTERVAL
f_143987_
private static final SimpleDateFormat
h
BAN_DATE_FORMAT
field_14356
DATE_FORMATTER
f_11194_
private final MinecraftServer
i
server
field_14360
server
f_11195_
private final List<ServerPlayer>
j
players
field_14351
players
f_11196_
private final Map<UUID, ServerPlayer>
k
playersByUUID
field_14354
playerMap
f_11197_
private final UserBanList
l
bans
field_14344
bannedProfiles
f_11198_
private final IpBanList
m
ipBans
field_14345
bannedIps
f_11199_
private final ServerOpList
n
ops
field_14353
ops
f_11200_
private final UserWhiteList
o
whitelist
field_14361
whitelist
f_11201_
private final Map<UUID, ServerStatsCounter>
p
stats
field_14362
statisticsMap
f_11202_
private final Map<UUID, PlayerAdvancements>
q
advancements
field_14346
advancementTrackers
f_11203_
private final PlayerDataStorage
r
playerIo
field_14358
saveHandler
f_11204_
private boolean
s
doWhiteList
field_14352
whitelistEnabled
f_11205_
private final RegistryAccess$Frozen
t
registryHolder
field_24626
registryManager
f_11206_
protected final int
f
maxPlayers
field_14347
maxPlayers
f_11193_
private int
u
viewDistance
field_14359
viewDistance
f_11207_
private int
v
simulationDistance
field_34895
simulationDistance
f_184208_
private boolean
w
allowCheatsForAllPlayers
field_14350
cheatsAllowed
f_11209_
private static final boolean
x
ALLOW_LOGOUTIVATOR
field_29791
field_29791
f_143988_
private int
y
sendAllPlayerInfoIn
field_14357
latencyUpdateTimer
f_11210_

Constructor summary

ModifierConstructor
public (MinecraftServer server, RegistryAccess$Frozen registryManager, PlayerDataStorage saveHandler, int maxPlayers)

Method summary

Modifier and TypeMethod
public void
a(qv arg0, afp arg1)
placeNewPlayer(Connection arg0, ServerPlayer arg1)
method_14570(class_2535 arg0, class_3222 arg1)
onPlayerConnect(ClientConnection connection, ServerPlayerEntity player)
m_11261_(C_4961_ p_11263_, C_13_ arg1)
protected void
a(aay arg0, afp arg1)
updateEntireScoreboard(ServerScoreboard arg0, ServerPlayer arg1)
method_14588(class_2995 arg0, class_3222 arg1)
sendScoreboard(ServerScoreboard scoreboard, ServerPlayerEntity player)
m_11273_(C_5286_ p_11275_, C_13_ arg1)
public void
a(afo arg0)
addWorldborderListener(ServerLevel arg0)
method_14591(class_3218 arg0)
setMainWorld(ServerWorld world)
m_184209_(C_12_ arg0)
public CompoundTag
a(afp arg0)
load(ServerPlayer arg0)
method_14600(class_3222 arg0)
loadPlayerData(ServerPlayerEntity player)
m_11224_(C_13_ arg0)
protected void
b(afp arg0)
save(ServerPlayer arg0)
method_14577(class_3222 arg0)
savePlayerData(ServerPlayerEntity player)
m_6765_(C_13_ arg0)
public void
c(afp arg0)
remove(ServerPlayer arg0)
method_14611(class_3222 arg0)
remove(ServerPlayerEntity player)
m_11286_(C_13_ arg0)
public Component
a(SocketAddress arg0, com.mojang.authlib.GameProfile arg1)
canPlayerLogin(SocketAddress arg0, com.mojang.authlib.GameProfile arg1)
method_14586(SocketAddress arg0, com.mojang.authlib.GameProfile arg1)
checkCanJoin(SocketAddress address, com.mojang.authlib.GameProfile profile)
m_6418_(SocketAddress p_11258_, com.mojang.authlib.GameProfile arg1)
public ServerPlayer
a(com.mojang.authlib.GameProfile arg0, bti arg1)
getPlayerForLogin(com.mojang.authlib.GameProfile arg0, ProfilePublicKey arg1)
method_14613(com.mojang.authlib.GameProfile arg0, class_7428 arg1)
createPlayer(com.mojang.authlib.GameProfile profile, PlayerPublicKey publicKey)
m_215624_(com.mojang.authlib.GameProfile p_215626_, C_213070_ arg1)
public ServerPlayer
a(afp arg0, boolean arg1)
respawn(ServerPlayer arg0, boolean arg1)
method_14556(class_3222 arg0, boolean arg1)
respawnPlayer(ServerPlayerEntity player, boolean alive)
m_11236_(C_13_ p_11238_, boolean arg1)
public void
d(afp arg0)
sendPlayerPermissionLevel(ServerPlayer arg0)
method_14576(class_3222 arg0)
sendCommandTree(ServerPlayerEntity player)
m_11289_(C_13_ arg0)
public void
d()
tick()
method_14601()
updatePlayerLatency()
m_11288_()
public void
a(so<?> arg0)
broadcastAll(Packet<?> arg0)
method_14581(class_2596<?> arg0)
sendToAll(Packet<?> packet)
m_11268_(C_5028_<?> arg0)
public void
a(so<?> arg0, aai<cga> arg1)
broadcastAll(Packet<?> arg0, ResourceKey<Level> arg1)
method_14589(class_2596<?> arg0, class_5321<class_1937> arg1)
sendToDimension(Packet<?> packet, RegistryKey<World> dimension)
m_11270_(C_5028_<?> p_11272_, C_5264_<C_1596_> arg1)
public void
a(btf arg0, rm arg1)
broadcastSystemToTeam(Player arg0, Component arg1)
method_14564(class_1657 arg0, class_2561 arg1)
sendToTeam(PlayerEntity source, Text message)
m_215621_(C_1141_ p_215623_, C_4996_ arg1)
public void
b(btf arg0, rm arg1)
broadcastSystemToAllExceptTeam(Player arg0, Component arg1)
method_14565(class_1657 arg0, class_2561 arg1)
sendToOtherTeams(PlayerEntity source, Text message)
m_215649_(C_1141_ p_215651_, C_4996_ arg1)
public String[]
e()
getPlayerNamesArray()
method_14580()
getPlayerNames()
m_11291_()
public UserBanList
f()
getBans()
method_14563()
getUserBanList()
m_11295_()
public IpBanList
g()
getIpBans()
method_14585()
getIpBanList()
m_11299_()
public void
a(com.mojang.authlib.GameProfile arg0)
op(com.mojang.authlib.GameProfile arg0)
method_14582(com.mojang.authlib.GameProfile arg0)
addToOperators(com.mojang.authlib.GameProfile profile)
m_5749_(com.mojang.authlib.GameProfile arg0)
public void
b(com.mojang.authlib.GameProfile arg0)
deop(com.mojang.authlib.GameProfile arg0)
method_14604(com.mojang.authlib.GameProfile arg0)
removeFromOperators(com.mojang.authlib.GameProfile profile)
m_5750_(com.mojang.authlib.GameProfile arg0)
private void
a(afp arg0, int arg1)
sendPlayerPermissionLevel(ServerPlayer arg0, int arg1)
method_14596(class_3222 arg0, int arg1)
sendCommandTree(ServerPlayerEntity player, int permissionLevel)
m_11226_(C_13_ p_11228_, int arg1)
public boolean
c(com.mojang.authlib.GameProfile arg0)
isWhiteListed(com.mojang.authlib.GameProfile arg0)
method_14587(com.mojang.authlib.GameProfile arg0)
isWhitelisted(com.mojang.authlib.GameProfile profile)
m_5764_(com.mojang.authlib.GameProfile arg0)
public boolean
e(com.mojang.authlib.GameProfile arg0)
isOp(com.mojang.authlib.GameProfile arg0)
method_14569(com.mojang.authlib.GameProfile arg0)
isOperator(com.mojang.authlib.GameProfile profile)
m_11303_(com.mojang.authlib.GameProfile arg0)
public ServerPlayer
a(String arg0)
getPlayerByName(String arg0)
method_14566(String arg0)
getPlayer(String name)
m_11255_(String arg0)
public void
a(btf arg0, double arg1, double arg2, double arg3, double arg4, aai<cga> arg5, so<?> arg6)
broadcast(Player arg0, double arg1, double arg2, double arg3, double arg4, ResourceKey<Level> arg5, Packet<?> arg6)
method_14605(class_1657 arg0, double arg1, double arg2, double arg3, double arg4, class_5321<class_1937> arg5, class_2596<?> arg6)
sendToAround(PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet)
m_11241_(C_1141_ p_11243_, double p_11244_, double p_11246_, double p_11248_, double arg4, C_5264_<C_1596_> arg5, C_5028_<?> arg6)
public void
h()
saveAll()
method_14617()
saveAllPlayerData()
m_11302_()
public UserWhiteList
i()
getWhiteList()
method_14590()
getWhitelist()
m_11305_()
public String[]
j()
getWhiteListNames()
method_14560()
getWhitelistedNames()
m_11306_()
public ServerOpList
k()
getOps()
method_14603()
getOpList()
m_11307_()
public String[]
l()
getOpNames()
method_14584()
getOpNames()
m_11308_()
public void
a()
reloadWhiteList()
method_14599()
reloadWhitelist()
m_7542_()
public void
a(afp arg0, afo arg1)
sendLevelInfo(ServerPlayer arg0, ServerLevel arg1)
method_14606(class_3222 arg0, class_3218 arg1)
sendWorldInfo(ServerPlayerEntity player, ServerWorld world)
m_11229_(C_13_ p_11231_, C_12_ arg1)
public void
e(afp arg0)
sendAllPlayerInfo(ServerPlayer arg0)
method_14594(class_3222 arg0)
sendPlayerStatus(ServerPlayerEntity player)
m_11292_(C_13_ arg0)
public int
m()
getPlayerCount()
method_14574()
getCurrentPlayerCount()
m_11309_()
public int
n()
getMaxPlayers()
method_14592()
getMaxPlayerCount()
m_11310_()
public boolean
o()
isUsingWhitelist()
method_14614()
isWhitelistEnabled()
m_11311_()
public void
a(boolean arg0)
setUsingWhiteList(boolean arg0)
method_14557(boolean arg0)
setWhitelistEnabled(boolean whitelistEnabled)
m_6628_(boolean arg0)
public List<ServerPlayer>
b(String arg0)
getPlayersWithAddress(String arg0)
method_14559(String arg0)
getPlayersByIp(String ip)
m_11282_(String arg0)
public int
p()
getViewDistance()
method_14568()
getViewDistance()
m_11312_()
public int
q()
getSimulationDistance()
method_38651()
getSimulationDistance()
m_184213_()
public MinecraftServer
c()
getServer()
method_14561()
getServer()
m_7873_()
public CompoundTag
r()
getSingleplayerData()
method_14567()
getUserData()
m_6960_()
public void
b(boolean arg0)
setAllowCheatsForAllPlayers(boolean arg0)
method_14607(boolean arg0)
setCheatsAllowed(boolean cheatsAllowed)
m_11284_(boolean arg0)
public void
s()
removeAll()
method_14597()
disconnectAllPlayers()
m_11313_()
public void
a(rm arg0, aai<rj> arg1)
broadcastSystemMessage(Component arg0, ResourceKey<ChatType> arg1)
method_43514(class_2561 arg0, class_5321<class_2556> arg1)
broadcast(Text message, RegistryKey<MessageType> typeKey)
m_215627_(C_4996_ p_215629_, C_5264_<C_4992_> arg1)
public void
a(rm arg0, Function<afp, rm> arg1, aai<rj> arg2)
broadcastSystemMessage(Component arg0, Function<ServerPlayer, Component> arg1, ResourceKey<ChatType> arg2)
method_43512(class_2561 arg0, Function<class_3222, class_2561> arg1, class_5321<class_2556> arg2)
broadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, RegistryKey<MessageType> typeKey)
m_215633_(C_4996_ p_215635_, Function<C_13_, C_4996_> p_215636_, C_5264_<C_4992_> arg2)
public void
a(agd<ru> arg0, dr arg1, aai<rj> arg2)
broadcastChatMessage(FilteredText<PlayerChatMessage> arg0, CommandSourceStack arg1, ResourceKey<ChatType> arg2)
method_44166(class_5837<class_7471> arg0, class_2168 arg1, class_5321<class_2556> arg2)
broadcast(FilteredMessage<SignedMessage> message, ServerCommandSource source, RegistryKey<MessageType> typeKey)
m_215615_(C_212939_<C_213510_> p_215617_, C_2969_ p_215618_, C_5264_<C_4992_> arg2)
public void
a(agd<ru> arg0, afp arg1, aai<rj> arg2)
broadcastChatMessage(FilteredText<PlayerChatMessage> arg0, ServerPlayer arg1, ResourceKey<ChatType> arg2)
method_43673(class_5837<class_7471> arg0, class_3222 arg1, class_5321<class_2556> arg2)
broadcast(FilteredMessage<SignedMessage> message, ServerPlayerEntity sender, RegistryKey<MessageType> typeKey)
m_215607_(C_212939_<C_213510_> p_215609_, C_13_ p_215610_, C_5264_<C_4992_> arg2)
public void
a(ru arg0, ri arg1, aai<rj> arg2)
broadcastChatMessage(PlayerChatMessage arg0, ChatSender arg1, ResourceKey<ChatType> arg2)
method_43674(class_7471 arg0, class_7436 arg1, class_5321<class_2556> arg2)
broadcast(SignedMessage message, MessageSender sender, RegistryKey<MessageType> typeKey)
m_215645_(C_213510_ p_215647_, C_213502_ p_215648_, C_5264_<C_4992_> arg2)
public void
a(ru arg0, Function<afp, ru> arg1, ri arg2, aai<rj> arg3)
broadcastChatMessage(PlayerChatMessage arg0, Function<ServerPlayer, PlayerChatMessage> arg1, ChatSender arg2, ResourceKey<ChatType> arg3)
method_43513(class_7471 arg0, Function<class_3222, class_7471> arg1, class_7436 arg2, class_5321<class_2556> arg3)
broadcast(SignedMessage message, Function<ServerPlayerEntity, SignedMessage> playerMessageFactory, MessageSender sender, RegistryKey<MessageType> typeKey)
m_215640_(C_213510_ p_215642_, Function<C_13_, C_213510_> p_215643_, C_213502_ p_215644_, C_5264_<C_4992_> arg3)
public ServerStatsCounter
a(btf arg0)
getPlayerStats(Player arg0)
method_14583(class_1657 arg0)
createStatHandler(PlayerEntity player)
m_11239_(C_1141_ arg0)
public PlayerAdvancements
f(afp arg0)
getPlayerAdvancements(ServerPlayer arg0)
method_14578(class_3222 arg0)
getAdvancementTracker(ServerPlayerEntity player)
m_11296_(C_13_ arg0)
public void
a(int arg0)
setViewDistance(int arg0)
method_14608(int arg0)
setViewDistance(int viewDistance)
m_11217_(int arg0)
public void
b(int arg0)
setSimulationDistance(int arg0)
method_38650(int arg0)
setSimulationDistance(int simulationDistance)
m_184211_(int arg0)
public List<ServerPlayer>
t()
getPlayers()
method_14571()
getPlayerList()
m_11314_()
public ServerPlayer
a(UUID arg0)
getPlayer(UUID arg0)
method_14602(UUID arg0)
getPlayer(UUID uuid)
m_11259_(UUID arg0)
public boolean
d(com.mojang.authlib.GameProfile arg0)
canBypassPlayerLimit(com.mojang.authlib.GameProfile arg0)
method_14609(com.mojang.authlib.GameProfile arg0)
canBypassPlayerLimit(com.mojang.authlib.GameProfile profile)
m_5765_(com.mojang.authlib.GameProfile arg0)
public void
u()
reloadResources()
method_14572()
onDataPacksReloaded()
m_11315_()
public boolean
v()
isAllowCheatsForAllPlayers()
method_14579()
areCheatsAllowed()
m_11316_()