net.minecraft.server.players

public abstract class PlayerList

avd
net.minecraft.server.players.PlayerList
net.minecraft.class_3324
net.minecraft.server.PlayerManager
net.minecraft.server.players.PlayerList

Field summary

Modifier and TypeField
public static final File
a
USERBANLIST_FILE
field_14355
BANNED_PLAYERS_FILE
public static final File
b
IPBANLIST_FILE
field_14364
BANNED_IPS_FILE
public static final File
c
OPLIST_FILE
field_14348
OPERATORS_FILE
public static final File
d
WHITELIST_FILE
field_14343
WHITELIST_FILE
public static final Component
e
CHAT_FILTERED_FULL
field_39921
FILTERED_FULL_TEXT
public static final Component
f
DUPLICATE_LOGIN_DISCONNECT_MESSAGE
field_45061
DUPLICATE_LOGIN_TEXT
private static final org.slf4j.Logger
h
LOGGER
field_14349
LOGGER
private static final int
i
SEND_PLAYER_INFO_INTERVAL
field_29790
LATENCY_UPDATE_INTERVAL
private static final SimpleDateFormat
j
BAN_DATE_FORMAT
field_14356
DATE_FORMATTER
private final MinecraftServer
k
server
field_14360
server
private final List<ServerPlayer>
l
players
field_14351
players
private final Map<UUID, ServerPlayer>
m
playersByUUID
field_14354
playerMap
private final UserBanList
n
bans
field_14344
bannedProfiles
private final IpBanList
o
ipBans
field_14345
bannedIps
private final ServerOpList
p
ops
field_14353
ops
private final UserWhiteList
q
whitelist
field_14361
whitelist
private final Map<UUID, ServerStatsCounter>
r
stats
field_14362
statisticsMap
private final Map<UUID, PlayerAdvancements>
s
advancements
field_14346
advancementTrackers
private final PlayerDataStorage
t
playerIo
field_14358
saveHandler
private boolean
u
doWhiteList
field_14352
whitelistEnabled
private final LayeredRegistryAccess<RegistryLayer>
v
registries
field_24626
registryManager
protected final int
g
maxPlayers
field_14347
maxPlayers
private int
w
viewDistance
field_14359
viewDistance
private int
x
simulationDistance
field_34895
simulationDistance
private boolean
y
allowCommandsForAllPlayers
field_14350
cheatsAllowed
private static final boolean
z
ALLOW_LOGOUTIVATOR
field_29791
field_29791
private int
A
sendAllPlayerInfoIn
field_14357
latencyUpdateTimer

Constructor summary

ModifierConstructor
public (MinecraftServer server, LayeredRegistryAccess<RegistryLayer> registryManager, PlayerDataStorage saveHandler, int maxPlayers)

Method summary

Modifier and TypeMethod
public void
a(vi arg0, are arg1, art arg2)
placeNewPlayer(Connection arg0, ServerPlayer arg1, CommonListenerCookie arg2)
method_14570(class_2535 arg0, class_3222 arg1, class_8792 arg2)
onPlayerConnect(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData)
protected void
a(alo arg0, are arg1)
updateEntireScoreboard(ServerScoreboard arg0, ServerPlayer arg1)
method_14588(class_2995 arg0, class_3222 arg1)
sendScoreboard(ServerScoreboard scoreboard, ServerPlayerEntity player)
public void
a(ard arg0)
addWorldborderListener(ServerLevel arg0)
method_14591(class_3218 arg0)
setMainWorld(ServerWorld world)
public Optional<CompoundTag>
a(are arg0)
load(ServerPlayer arg0)
method_14600(class_3222 arg0)
loadPlayerData(ServerPlayerEntity player)
protected void
b(are arg0)
save(ServerPlayer arg0)
method_14577(class_3222 arg0)
savePlayerData(ServerPlayerEntity player)
public void
c(are arg0)
remove(ServerPlayer arg0)
method_14611(class_3222 arg0)
remove(ServerPlayerEntity player)
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)
public ServerPlayer
a(com.mojang.authlib.GameProfile arg0, aqo arg1)
getPlayerForLogin(com.mojang.authlib.GameProfile arg0, ClientInformation arg1)
method_14613(com.mojang.authlib.GameProfile arg0, class_8791 arg1)
createPlayer(com.mojang.authlib.GameProfile profile, SyncedClientOptions syncedOptions)
public boolean
e(com.mojang.authlib.GameProfile arg0)
disconnectAllPlayersWithProfile(com.mojang.authlib.GameProfile arg0)
method_52449(com.mojang.authlib.GameProfile arg0)
disconnectDuplicateLogins(com.mojang.authlib.GameProfile profile)
public ServerPlayer
a(are arg0, boolean arg1, bum$d arg2)
respawn(ServerPlayer arg0, boolean arg1, Entity$RemovalReason arg2)
method_14556(class_3222 arg0, boolean arg1, class_1297$class_5529 arg2)
respawnPlayer(ServerPlayerEntity player, boolean alive, Entity$RemovalReason removalReason)
public void
d(are arg0)
sendActivePlayerEffects(ServerPlayer arg0)
method_60598(class_3222 arg0)
sendStatusEffects(ServerPlayerEntity player)
public void
a(bvi arg0, asg arg1)
sendActiveEffects(LivingEntity arg0, ServerGamePacketListenerImpl arg1)
method_60597(class_1309 arg0, class_3244 arg1)
sendStatusEffects(LivingEntity entity, ServerPlayNetworkHandler networkHandler)
public void
e(are arg0)
sendPlayerPermissionLevel(ServerPlayer arg0)
method_14576(class_3222 arg0)
sendCommandTree(ServerPlayerEntity player)
public void
d()
tick()
method_14601()
updatePlayerLatency()
public void
a(yw<?> arg0)
broadcastAll(Packet<?> arg0)
method_14581(class_2596<?> arg0)
sendToAll(Packet<?> packet)
public void
a(yw<?> arg0, aku<dgj> arg1)
broadcastAll(Packet<?> arg0, ResourceKey<Level> arg1)
method_14589(class_2596<?> arg0, class_5321<class_1937> arg1)
sendToDimension(Packet<?> packet, RegistryKey<World> dimension)
public void
a(coy arg0, wp arg1)
broadcastSystemToTeam(Player arg0, Component arg1)
method_14564(class_1657 arg0, class_2561 arg1)
sendToTeam(PlayerEntity source, Text message)
public void
b(coy arg0, wp arg1)
broadcastSystemToAllExceptTeam(Player arg0, Component arg1)
method_14565(class_1657 arg0, class_2561 arg1)
sendToOtherTeams(PlayerEntity source, Text message)
public String[]
e()
getPlayerNamesArray()
method_14580()
getPlayerNames()
public UserBanList
f()
getBans()
method_14563()
getUserBanList()
public IpBanList
g()
getIpBans()
method_14585()
getIpBanList()
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)
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)
private void
a(are arg0, int arg1)
sendPlayerPermissionLevel(ServerPlayer arg0, int arg1)
method_14596(class_3222 arg0, int arg1)
sendCommandTree(ServerPlayerEntity player, int permissionLevel)
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)
public boolean
f(com.mojang.authlib.GameProfile arg0)
isOp(com.mojang.authlib.GameProfile arg0)
method_14569(com.mojang.authlib.GameProfile arg0)
isOperator(com.mojang.authlib.GameProfile profile)
public ServerPlayer
a(String arg0)
getPlayerByName(String arg0)
method_14566(String arg0)
getPlayer(String name)
public void
a(coy arg0, double arg1, double arg2, double arg3, double arg4, aku<dgj> arg5, yw<?> 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)
public void
h()
saveAll()
method_14617()
saveAllPlayerData()
public UserWhiteList
i()
getWhiteList()
method_14590()
getWhitelist()
public String[]
j()
getWhiteListNames()
method_14560()
getWhitelistedNames()
public ServerOpList
k()
getOps()
method_14603()
getOpList()
public String[]
l()
getOpNames()
method_14584()
getOpNames()
public void
a()
reloadWhiteList()
method_14599()
reloadWhitelist()
public void
a(are arg0, ard arg1)
sendLevelInfo(ServerPlayer arg0, ServerLevel arg1)
method_14606(class_3222 arg0, class_3218 arg1)
sendWorldInfo(ServerPlayerEntity player, ServerWorld world)
public void
f(are arg0)
sendAllPlayerInfo(ServerPlayer arg0)
method_14594(class_3222 arg0)
sendPlayerStatus(ServerPlayerEntity player)
public int
m()
getPlayerCount()
method_14574()
getCurrentPlayerCount()
public int
n()
getMaxPlayers()
method_14592()
getMaxPlayerCount()
public boolean
o()
isUsingWhitelist()
method_14614()
isWhitelistEnabled()
public void
a(boolean arg0)
setUsingWhiteList(boolean arg0)
method_14557(boolean arg0)
setWhitelistEnabled(boolean whitelistEnabled)
public List<ServerPlayer>
b(String arg0)
getPlayersWithAddress(String arg0)
method_14559(String arg0)
getPlayersByIp(String ip)
public int
p()
getViewDistance()
method_14568()
getViewDistance()
public int
q()
getSimulationDistance()
method_38651()
getSimulationDistance()
public MinecraftServer
c()
getServer()
method_14561()
getServer()
public CompoundTag
r()
getSingleplayerData()
method_14567()
getUserData()
public void
b(boolean arg0)
setAllowCommandsForAllPlayers(boolean arg0)
method_14607(boolean arg0)
setCheatsAllowed(boolean cheatsAllowed)
public void
s()
removeAll()
method_14597()
disconnectAllPlayers()
public void
a(wp arg0, boolean arg1)
broadcastSystemMessage(Component arg0, boolean arg1)
method_43514(class_2561 arg0, boolean arg1)
broadcast(Text message, boolean overlay)
public void
a(wp arg0, Function<are, wp> arg1, boolean arg2)
broadcastSystemMessage(Component arg0, Function<ServerPlayer, Component> arg1, boolean arg2)
method_43512(class_2561 arg0, Function<class_3222, class_2561> arg1, boolean arg2)
broadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, boolean overlay)
public void
a(xf arg0, ex arg1, wl$a arg2)
broadcastChatMessage(PlayerChatMessage arg0, CommandSourceStack arg1, ChatType$Bound arg2)
method_44166(class_7471 arg0, class_2168 arg1, class_2556$class_7602 arg2)
broadcast(SignedMessage message, ServerCommandSource source, MessageType$Parameters params)
public void
a(xf arg0, are arg1, wl$a arg2)
broadcastChatMessage(PlayerChatMessage arg0, ServerPlayer arg1, ChatType$Bound arg2)
method_43673(class_7471 arg0, class_3222 arg1, class_2556$class_7602 arg2)
broadcast(SignedMessage message, ServerPlayerEntity sender, MessageType$Parameters params)
private void
a(xf arg0, Predicate<are> arg1, are arg2, wl$a arg3)
broadcastChatMessage(PlayerChatMessage arg0, Predicate<ServerPlayer> arg1, ServerPlayer arg2, ChatType$Bound arg3)
method_44791(class_7471 arg0, Predicate<class_3222> arg1, class_3222 arg2, class_2556$class_7602 arg3)
broadcast(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, ServerPlayerEntity sender, MessageType$Parameters params)
private boolean
a(xf arg0)
verifyChatTrusted(PlayerChatMessage arg0)
method_44793(class_7471 arg0)
verify(SignedMessage message)
public ServerStatsCounter
a(coy arg0)
getPlayerStats(Player arg0)
method_14583(class_1657 arg0)
createStatHandler(PlayerEntity player)
public PlayerAdvancements
g(are arg0)
getPlayerAdvancements(ServerPlayer arg0)
method_14578(class_3222 arg0)
getAdvancementTracker(ServerPlayerEntity player)
public void
a(int arg0)
setViewDistance(int arg0)
method_14608(int arg0)
setViewDistance(int viewDistance)
public void
b(int arg0)
setSimulationDistance(int arg0)
method_38650(int arg0)
setSimulationDistance(int simulationDistance)
public List<ServerPlayer>
t()
getPlayers()
method_14571()
getPlayerList()
public ServerPlayer
a(UUID arg0)
getPlayer(UUID arg0)
method_14602(UUID arg0)
getPlayer(UUID uuid)
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)
public void
u()
reloadResources()
method_14572()
onDataPacksReloaded()
public boolean
v()
isAllowCommandsForAllPlayers()
method_14579()
areCheatsAllowed()