Package net.minecraft.server.management
Class PlayerList
java.lang.Object
net.minecraft.server.management.PlayerList
- Direct Known Subclasses:
DedicatedPlayerList
,IntegratedPlayerList
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<UUID,
PlayerAdvancements> private boolean
private static final SimpleDateFormat
private final BanList
private boolean
static final File
private final IPBanList
private static final org.apache.logging.log4j.Logger
protected final int
static final File
private final OpList
private GameType
private final PlayerData
private final List<ServerPlayerEntity>
private final Map<UUID,
ServerPlayerEntity> private final List<ServerPlayerEntity>
private final DynamicRegistries.Impl
private int
private final MinecraftServer
private final Map<UUID,
ServerStatisticsManager> static final File
private int
private final WhiteList
static final File
-
Constructor Summary
ConstructorDescriptionPlayerList
(MinecraftServer p_i231425_1_, DynamicRegistries.Impl p_i231425_2_, PlayerData p_i231425_3_, int p_i231425_4_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addPlayer
(ServerPlayerEntity player) void
broadcast
(PlayerEntity p_148543_1_, double p_148543_2_, double p_148543_4_, double p_148543_6_, double p_148543_8_, RegistryKey<World> p_148543_10_, IPacket<?> p_148543_11_) void
broadcastAll
(IPacket<?> p_148540_1_) void
broadcastAll
(IPacket<?> p_232642_1_, RegistryKey<World> p_232642_2_) void
broadcastMessage
(ITextComponent p_232641_1_, ChatType p_232641_2_, UUID p_232641_3_) void
broadcastToAllExceptTeam
(PlayerEntity p_177452_1_, ITextComponent p_177452_2_) void
broadcastToTeam
(PlayerEntity p_177453_1_, ITextComponent p_177453_2_) boolean
canBypassPlayerLimit
(com.mojang.authlib.GameProfile p_183023_1_) canPlayerLogin
(SocketAddress p_206258_1_, com.mojang.authlib.GameProfile p_206258_2_) void
deop
(com.mojang.authlib.GameProfile p_152610_1_) getBans()
int
String[]
getOps()
getPlayerAdvancements
(ServerPlayerEntity p_192054_1_) getPlayerByName
(String p_152612_1_) int
getPlayerForLogin
(com.mojang.authlib.GameProfile p_148545_1_) String[]
getPlayerStats
(PlayerEntity p_152602_1_) getPlayersWithAddress
(String p_72382_1_) int
String[]
boolean
boolean
isOp
(com.mojang.authlib.GameProfile p_152596_1_) boolean
boolean
isWhiteListed
(com.mojang.authlib.GameProfile p_152607_1_) load
(ServerPlayerEntity p_72380_1_) void
op
(com.mojang.authlib.GameProfile p_152605_1_) void
placeNewPlayer
(NetworkManager p_72355_1_, ServerPlayerEntity p_72355_2_) void
void
void
remove
(ServerPlayerEntity p_72367_1_) void
boolean
removePlayer
(ServerPlayerEntity player) respawn
(ServerPlayerEntity p_232644_1_, boolean p_232644_2_) protected void
save
(ServerPlayerEntity p_72391_1_) void
saveAll()
void
sendAllPlayerInfo
(ServerPlayerEntity p_72385_1_) void
sendLevelInfo
(ServerPlayerEntity p_72354_1_, ServerWorld p_72354_2_) void
sendPlayerPermissionLevel
(ServerPlayerEntity p_187243_1_) private void
sendPlayerPermissionLevel
(ServerPlayerEntity p_187245_1_, int p_187245_2_) void
setAllowCheatsForAllPlayers
(boolean p_72387_1_) void
setLevel
(ServerWorld p_212504_1_) void
setOverrideGameMode
(GameType p_152604_1_) void
setUsingWhiteList
(boolean p_72371_1_) void
setViewDistance
(int p_217884_1_) void
tick()
protected void
updateEntireScoreboard
(ServerScoreboard p_96456_1_, ServerPlayerEntity p_96456_2_) private void
updatePlayerGameMode
(ServerPlayerEntity p_72381_1_, ServerPlayerEntity p_72381_2_, ServerWorld p_72381_3_)
-
Field Details
-
USERBANLIST_FILE
-
IPBANLIST_FILE
-
OPLIST_FILE
-
WHITELIST_FILE
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
BAN_DATE_FORMAT
-
server
-
players
-
playersByUUID
-
bans
-
ipBans
-
ops
-
whitelist
-
stats
-
advancements
-
playerIo
-
doWhiteList
private boolean doWhiteList -
registryHolder
-
maxPlayers
protected final int maxPlayers -
viewDistance
private int viewDistance -
overrideGameMode
-
allowCheatsForAllPlayers
private boolean allowCheatsForAllPlayers -
sendAllPlayerInfoIn
private int sendAllPlayerInfoIn -
playersView
-
-
Constructor Details
-
PlayerList
public PlayerList(MinecraftServer p_i231425_1_, DynamicRegistries.Impl p_i231425_2_, PlayerData p_i231425_3_, int p_i231425_4_)
-
-
Method Details
-
placeNewPlayer
-
updateEntireScoreboard
-
setLevel
-
load
-
save
-
remove
-
canPlayerLogin
@Nullable public ITextComponent canPlayerLogin(SocketAddress p_206258_1_, com.mojang.authlib.GameProfile p_206258_2_) -
getPlayerForLogin
-
respawn
-
sendPlayerPermissionLevel
-
tick
public void tick() -
broadcastAll
-
broadcastAll
-
broadcastToTeam
-
broadcastToAllExceptTeam
-
getPlayerNamesArray
-
getBans
-
getIpBans
-
op
public void op(com.mojang.authlib.GameProfile p_152605_1_) -
deop
public void deop(com.mojang.authlib.GameProfile p_152610_1_) -
sendPlayerPermissionLevel
-
isWhiteListed
public boolean isWhiteListed(com.mojang.authlib.GameProfile p_152607_1_) -
isOp
public boolean isOp(com.mojang.authlib.GameProfile p_152596_1_) -
getPlayerByName
-
broadcast
public void broadcast(@Nullable PlayerEntity p_148543_1_, double p_148543_2_, double p_148543_4_, double p_148543_6_, double p_148543_8_, RegistryKey<World> p_148543_10_, IPacket<?> p_148543_11_) -
saveAll
public void saveAll() -
getWhiteList
-
getWhiteListNames
-
getOps
-
getOpNames
-
reloadWhiteList
public void reloadWhiteList() -
sendLevelInfo
-
sendAllPlayerInfo
-
getPlayerCount
public int getPlayerCount() -
getMaxPlayers
public int getMaxPlayers() -
isUsingWhitelist
public boolean isUsingWhitelist() -
setUsingWhiteList
public void setUsingWhiteList(boolean p_72371_1_) -
getPlayersWithAddress
-
getViewDistance
public int getViewDistance() -
getServer
-
getSingleplayerData
-
setOverrideGameMode
-
updatePlayerGameMode
private void updatePlayerGameMode(ServerPlayerEntity p_72381_1_, @Nullable ServerPlayerEntity p_72381_2_, ServerWorld p_72381_3_) -
setAllowCheatsForAllPlayers
public void setAllowCheatsForAllPlayers(boolean p_72387_1_) -
removeAll
public void removeAll() -
broadcastMessage
-
getPlayerStats
-
getPlayerAdvancements
-
setViewDistance
public void setViewDistance(int p_217884_1_) -
getPlayers
-
getPlayer
-
canBypassPlayerLimit
public boolean canBypassPlayerLimit(com.mojang.authlib.GameProfile p_183023_1_) -
reloadResources
public void reloadResources() -
isAllowCheatsForAllPlayers
public boolean isAllowCheatsForAllPlayers() -
addPlayer
-
removePlayer
-