Class PlayerManager
- Direct Known Subclasses:
DedicatedPlayerManager
,IntegratedPlayerManager
- Mappings:
Namespace Name named net/minecraft/server/PlayerManager
intermediary net/minecraft/class_3324
official awi
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<UUID, PlayerAdvancementTracker> static final File
static final File
private final BannedIpList
private final BannedPlayerList
private boolean
private static final SimpleDateFormat
static final Text
private static final boolean
static final Text
private static final int
private int
private static final Logger
protected final int
static final File
private final OperatorList
private final Map
<UUID, ServerPlayerEntity> private final List
<ServerPlayerEntity> private final CombinedDynamicRegistries
<ServerDynamicRegistryType> private final PlayerSaveHandler
private final MinecraftServer
private int
private final Map
<UUID, ServerStatHandler> private int
private final Whitelist
static final File
private boolean
-
Constructor Summary
ConstructorDescriptionPlayerManager
(MinecraftServer server, CombinedDynamicRegistries<ServerDynamicRegistryType> registryManager, PlayerSaveHandler saveHandler, int maxPlayers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToOperators
(com.mojang.authlib.GameProfile profile) boolean
private void
broadcast
(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
broadcast
(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
broadcast
(SignedMessage message, ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
Broadcasts a message to all players and the server console.void
broadcast
(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, boolean overlay) Broadcasts a message to all players and the server console.boolean
canBypassPlayerLimit
(com.mojang.authlib.GameProfile profile) checkCanJoin
(SocketAddress address, com.mojang.authlib.GameProfile profile) createPlayer
(com.mojang.authlib.GameProfile profile, SyncedClientOptions syncedOptions) createStatHandler
(PlayerEntity player) void
boolean
disconnectDuplicateLogins
(com.mojang.authlib.GameProfile profile) int
int
String[]
Gets a list of all players on a Minecraft server.String[]
getPlayersByIp
(String ip) int
Gets the user data of the player hosting the Minecraft server.int
String[]
boolean
isOperator
(com.mojang.authlib.GameProfile profile) boolean
isWhitelisted
(com.mojang.authlib.GameProfile profile) boolean
loadPlayerData
(ServerPlayerEntity player) void
void
onPlayerConnect
(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData) void
void
remove
(ServerPlayerEntity player) void
removeFromOperators
(com.mojang.authlib.GameProfile profile) respawnPlayer
(ServerPlayerEntity player, boolean alive, Entity.RemovalReason removalReason) void
protected void
savePlayerData
(ServerPlayerEntity player) void
sendCommandTree
(ServerPlayerEntity player) private void
sendCommandTree
(ServerPlayerEntity player, int permissionLevel) void
sendPlayerStatus
(ServerPlayerEntity player) protected void
sendScoreboard
(ServerScoreboard scoreboard, ServerPlayerEntity player) void
sendStatusEffects
(LivingEntity entity, ServerPlayNetworkHandler networkHandler) void
sendStatusEffects
(ServerPlayerEntity player) void
void
sendToAround
(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet) void
sendToDimension
(Packet<?> packet, RegistryKey<World> dimension) void
sendToOtherTeams
(PlayerEntity source, Text message) void
sendToTeam
(PlayerEntity source, Text message) void
sendWorldInfo
(ServerPlayerEntity player, ServerWorld world) void
setCheatsAllowed
(boolean cheatsAllowed) void
setMainWorld
(ServerWorld world) void
setSimulationDistance
(int simulationDistance) void
setViewDistance
(int viewDistance) void
setWhitelistEnabled
(boolean whitelistEnabled) void
private boolean
verify
(SignedMessage message) Returns whethermessage
is not expired and is verified.
-
Field Details
-
BANNED_PLAYERS_FILE
- Mappings:
Namespace Name Mixin selector named BANNED_PLAYERS_FILE
Lnet/minecraft/server/PlayerManager;BANNED_PLAYERS_FILE:Ljava/io/File;
intermediary field_14355
Lnet/minecraft/class_3324;field_14355:Ljava/io/File;
official a
Lawi;a:Ljava/io/File;
-
BANNED_IPS_FILE
- Mappings:
Namespace Name Mixin selector named BANNED_IPS_FILE
Lnet/minecraft/server/PlayerManager;BANNED_IPS_FILE:Ljava/io/File;
intermediary field_14364
Lnet/minecraft/class_3324;field_14364:Ljava/io/File;
official b
Lawi;b:Ljava/io/File;
-
OPERATORS_FILE
- Mappings:
Namespace Name Mixin selector named OPERATORS_FILE
Lnet/minecraft/server/PlayerManager;OPERATORS_FILE:Ljava/io/File;
intermediary field_14348
Lnet/minecraft/class_3324;field_14348:Ljava/io/File;
official c
Lawi;c:Ljava/io/File;
-
WHITELIST_FILE
- Mappings:
Namespace Name Mixin selector named WHITELIST_FILE
Lnet/minecraft/server/PlayerManager;WHITELIST_FILE:Ljava/io/File;
intermediary field_14343
Lnet/minecraft/class_3324;field_14343:Ljava/io/File;
official d
Lawi;d:Ljava/io/File;
-
FILTERED_FULL_TEXT
- Mappings:
Namespace Name Mixin selector named FILTERED_FULL_TEXT
Lnet/minecraft/server/PlayerManager;FILTERED_FULL_TEXT:Lnet/minecraft/text/Text;
intermediary field_39921
Lnet/minecraft/class_3324;field_39921:Lnet/minecraft/class_2561;
official e
Lawi;e:Lxv;
-
DUPLICATE_LOGIN_TEXT
- Mappings:
Namespace Name Mixin selector named DUPLICATE_LOGIN_TEXT
Lnet/minecraft/server/PlayerManager;DUPLICATE_LOGIN_TEXT:Lnet/minecraft/text/Text;
intermediary field_45061
Lnet/minecraft/class_3324;field_45061:Lnet/minecraft/class_2561;
official f
Lawi;f:Lxv;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/server/PlayerManager;LOGGER:Lorg/slf4j/Logger;
intermediary field_14349
Lnet/minecraft/class_3324;field_14349:Lorg/slf4j/Logger;
official h
Lawi;h:Lorg/slf4j/Logger;
-
LATENCY_UPDATE_INTERVAL
private static final int LATENCY_UPDATE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named LATENCY_UPDATE_INTERVAL
Lnet/minecraft/server/PlayerManager;LATENCY_UPDATE_INTERVAL:I
intermediary field_29790
Lnet/minecraft/class_3324;field_29790:I
official i
Lawi;i:I
-
DATE_FORMATTER
- Mappings:
Namespace Name Mixin selector named DATE_FORMATTER
Lnet/minecraft/server/PlayerManager;DATE_FORMATTER:Ljava/text/SimpleDateFormat;
intermediary field_14356
Lnet/minecraft/class_3324;field_14356:Ljava/text/SimpleDateFormat;
official j
Lawi;j:Ljava/text/SimpleDateFormat;
-
field_29791
private static final boolean field_29791- See Also:
- Mappings:
Namespace Name Mixin selector named field_29791
Lnet/minecraft/server/PlayerManager;field_29791:Z
intermediary field_29791
Lnet/minecraft/class_3324;field_29791:Z
official z
Lawi;z:Z
-
server
- Mappings:
Namespace Name Mixin selector named server
Lnet/minecraft/server/PlayerManager;server:Lnet/minecraft/server/MinecraftServer;
intermediary field_14360
Lnet/minecraft/class_3324;field_14360:Lnet/minecraft/server/MinecraftServer;
official k
Lawi;k:Lnet/minecraft/server/MinecraftServer;
-
players
- Mappings:
Namespace Name Mixin selector named players
Lnet/minecraft/server/PlayerManager;players:Ljava/util/List;
intermediary field_14351
Lnet/minecraft/class_3324;field_14351:Ljava/util/List;
official l
Lawi;l:Ljava/util/List;
-
playerMap
- Mappings:
Namespace Name Mixin selector named playerMap
Lnet/minecraft/server/PlayerManager;playerMap:Ljava/util/Map;
intermediary field_14354
Lnet/minecraft/class_3324;field_14354:Ljava/util/Map;
official m
Lawi;m:Ljava/util/Map;
-
bannedProfiles
- Mappings:
Namespace Name Mixin selector named bannedProfiles
Lnet/minecraft/server/PlayerManager;bannedProfiles:Lnet/minecraft/server/BannedPlayerList;
intermediary field_14344
Lnet/minecraft/class_3324;field_14344:Lnet/minecraft/class_3335;
official n
Lawi;n:Lawo;
-
bannedIps
- Mappings:
Namespace Name Mixin selector named bannedIps
Lnet/minecraft/server/PlayerManager;bannedIps:Lnet/minecraft/server/BannedIpList;
intermediary field_14345
Lnet/minecraft/class_3324;field_14345:Lnet/minecraft/class_3317;
official o
Lawi;o:Lawf;
-
ops
- Mappings:
Namespace Name Mixin selector named ops
Lnet/minecraft/server/PlayerManager;ops:Lnet/minecraft/server/OperatorList;
intermediary field_14353
Lnet/minecraft/class_3324;field_14353:Lnet/minecraft/class_3326;
official p
Lawi;p:Lawj;
-
whitelist
- Mappings:
Namespace Name Mixin selector named whitelist
Lnet/minecraft/server/PlayerManager;whitelist:Lnet/minecraft/server/Whitelist;
intermediary field_14361
Lnet/minecraft/class_3324;field_14361:Lnet/minecraft/class_3337;
official q
Lawi;q:Lawq;
-
statisticsMap
- Mappings:
Namespace Name Mixin selector named statisticsMap
Lnet/minecraft/server/PlayerManager;statisticsMap:Ljava/util/Map;
intermediary field_14362
Lnet/minecraft/class_3324;field_14362:Ljava/util/Map;
official r
Lawi;r:Ljava/util/Map;
-
advancementTrackers
- Mappings:
Namespace Name Mixin selector named advancementTrackers
Lnet/minecraft/server/PlayerManager;advancementTrackers:Ljava/util/Map;
intermediary field_14346
Lnet/minecraft/class_3324;field_14346:Ljava/util/Map;
official s
Lawi;s:Ljava/util/Map;
-
saveHandler
- Mappings:
Namespace Name Mixin selector named saveHandler
Lnet/minecraft/server/PlayerManager;saveHandler:Lnet/minecraft/world/PlayerSaveHandler;
intermediary field_14358
Lnet/minecraft/class_3324;field_14358:Lnet/minecraft/class_29;
official t
Lawi;t:Lewf;
-
whitelistEnabled
private boolean whitelistEnabled- Mappings:
Namespace Name Mixin selector named whitelistEnabled
Lnet/minecraft/server/PlayerManager;whitelistEnabled:Z
intermediary field_14352
Lnet/minecraft/class_3324;field_14352:Z
official u
Lawi;u:Z
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManager
Lnet/minecraft/server/PlayerManager;registryManager:Lnet/minecraft/registry/CombinedDynamicRegistries;
intermediary field_24626
Lnet/minecraft/class_3324;field_24626:Lnet/minecraft/class_7780;
official v
Lawi;v:Ljx;
-
maxPlayers
protected final int maxPlayers- Mappings:
Namespace Name Mixin selector named maxPlayers
Lnet/minecraft/server/PlayerManager;maxPlayers:I
intermediary field_14347
Lnet/minecraft/class_3324;field_14347:I
official g
Lawi;g:I
-
viewDistance
private int viewDistance- Mappings:
Namespace Name Mixin selector named viewDistance
Lnet/minecraft/server/PlayerManager;viewDistance:I
intermediary field_14359
Lnet/minecraft/class_3324;field_14359:I
official w
Lawi;w:I
-
simulationDistance
private int simulationDistance- Mappings:
Namespace Name Mixin selector named simulationDistance
Lnet/minecraft/server/PlayerManager;simulationDistance:I
intermediary field_34895
Lnet/minecraft/class_3324;field_34895:I
official x
Lawi;x:I
-
cheatsAllowed
private boolean cheatsAllowed- Mappings:
Namespace Name Mixin selector named cheatsAllowed
Lnet/minecraft/server/PlayerManager;cheatsAllowed:Z
intermediary field_14350
Lnet/minecraft/class_3324;field_14350:Z
official y
Lawi;y:Z
-
latencyUpdateTimer
private int latencyUpdateTimer- Mappings:
Namespace Name Mixin selector named latencyUpdateTimer
Lnet/minecraft/server/PlayerManager;latencyUpdateTimer:I
intermediary field_14357
Lnet/minecraft/class_3324;field_14357:I
official A
Lawi;A:I
-
-
Constructor Details
-
PlayerManager
public PlayerManager(MinecraftServer server, CombinedDynamicRegistries<ServerDynamicRegistryType> registryManager, PlayerSaveHandler saveHandler, int maxPlayers) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/PlayerManager;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/registry/CombinedDynamicRegistries;Lnet/minecraft/world/PlayerSaveHandler;I)V
intermediary <init>
Lnet/minecraft/class_3324;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_7780;Lnet/minecraft/class_29;I)V
official <init>
Lawi;<init>(Lnet/minecraft/server/MinecraftServer;Ljx;Lewf;I)V
-
-
Method Details
-
onPlayerConnect
public void onPlayerConnect(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData) - Mappings:
Namespace Name Mixin selector named onPlayerConnect
Lnet/minecraft/server/PlayerManager;onPlayerConnect(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ConnectedClientData;)V
intermediary method_14570
Lnet/minecraft/class_3324;method_14570(Lnet/minecraft/class_2535;Lnet/minecraft/class_3222;Lnet/minecraft/class_8792;)V
official a
Lawi;a(Lwp;Lasi;Lasx;)V
-
sendScoreboard
- Mappings:
Namespace Name Mixin selector named sendScoreboard
Lnet/minecraft/server/PlayerManager;sendScoreboard(Lnet/minecraft/scoreboard/ServerScoreboard;Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14588
Lnet/minecraft/class_3324;method_14588(Lnet/minecraft/class_2995;Lnet/minecraft/class_3222;)V
official a
Lawi;a(Lams;Lasi;)V
-
setMainWorld
- Mappings:
Namespace Name Mixin selector named setMainWorld
Lnet/minecraft/server/PlayerManager;setMainWorld(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_14591
Lnet/minecraft/class_3324;method_14591(Lnet/minecraft/class_3218;)V
official a
Lawi;a(Lash;)V
-
loadPlayerData
- Mappings:
Namespace Name Mixin selector named loadPlayerData
Lnet/minecraft/server/PlayerManager;loadPlayerData(Lnet/minecraft/server/network/ServerPlayerEntity;)Ljava/util/Optional;
intermediary method_14600
Lnet/minecraft/class_3324;method_14600(Lnet/minecraft/class_3222;)Ljava/util/Optional;
official a
Lawi;a(Lasi;)Ljava/util/Optional;
-
savePlayerData
- Mappings:
Namespace Name Mixin selector named savePlayerData
Lnet/minecraft/server/PlayerManager;savePlayerData(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14577
Lnet/minecraft/class_3324;method_14577(Lnet/minecraft/class_3222;)V
official b
Lawi;b(Lasi;)V
-
remove
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/server/PlayerManager;remove(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14611
Lnet/minecraft/class_3324;method_14611(Lnet/minecraft/class_3222;)V
official c
Lawi;c(Lasi;)V
-
checkCanJoin
@Nullable public @Nullable Text checkCanJoin(SocketAddress address, com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named checkCanJoin
Lnet/minecraft/server/PlayerManager;checkCanJoin(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;
intermediary method_14586
Lnet/minecraft/class_3324;method_14586(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_2561;
official a
Lawi;a(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lxv;
-
createPlayer
public ServerPlayerEntity createPlayer(com.mojang.authlib.GameProfile profile, SyncedClientOptions syncedOptions) - Mappings:
Namespace Name Mixin selector named createPlayer
Lnet/minecraft/server/PlayerManager;createPlayer(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary method_14613
Lnet/minecraft/class_3324;method_14613(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_8791;)Lnet/minecraft/class_3222;
official a
Lawi;a(Lcom/mojang/authlib/GameProfile;Lars;)Lasi;
-
disconnectDuplicateLogins
public boolean disconnectDuplicateLogins(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named disconnectDuplicateLogins
Lnet/minecraft/server/PlayerManager;disconnectDuplicateLogins(Lcom/mojang/authlib/GameProfile;)Z
intermediary method_52449
Lnet/minecraft/class_3324;method_52449(Lcom/mojang/authlib/GameProfile;)Z
official e
Lawi;e(Lcom/mojang/authlib/GameProfile;)Z
-
respawnPlayer
public ServerPlayerEntity respawnPlayer(ServerPlayerEntity player, boolean alive, Entity.RemovalReason removalReason) - Mappings:
Namespace Name Mixin selector named respawnPlayer
Lnet/minecraft/server/PlayerManager;respawnPlayer(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/entity/Entity$RemovalReason;)Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary method_14556
Lnet/minecraft/class_3324;method_14556(Lnet/minecraft/class_3222;ZLnet/minecraft/class_1297$class_5529;)Lnet/minecraft/class_3222;
official a
Lawi;a(Lasi;ZLbvj$d;)Lasi;
-
sendStatusEffects
- Mappings:
Namespace Name Mixin selector named sendStatusEffects
Lnet/minecraft/server/PlayerManager;sendStatusEffects(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_60598
Lnet/minecraft/class_3324;method_60598(Lnet/minecraft/class_3222;)V
official d
Lawi;d(Lasi;)V
-
sendStatusEffects
- Mappings:
Namespace Name Mixin selector named sendStatusEffects
Lnet/minecraft/server/PlayerManager;sendStatusEffects(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/server/network/ServerPlayNetworkHandler;)V
intermediary method_60597
Lnet/minecraft/class_3324;method_60597(Lnet/minecraft/class_1309;Lnet/minecraft/class_3244;)V
official a
Lawi;a(Lbwf;Latk;)V
-
sendCommandTree
- Mappings:
Namespace Name Mixin selector named sendCommandTree
Lnet/minecraft/server/PlayerManager;sendCommandTree(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14576
Lnet/minecraft/class_3324;method_14576(Lnet/minecraft/class_3222;)V
official e
Lawi;e(Lasi;)V
-
updatePlayerLatency
public void updatePlayerLatency()- Mappings:
Namespace Name Mixin selector named updatePlayerLatency
Lnet/minecraft/server/PlayerManager;updatePlayerLatency()V
intermediary method_14601
Lnet/minecraft/class_3324;method_14601()V
official d
Lawi;d()V
-
sendToAll
- Mappings:
Namespace Name Mixin selector named sendToAll
Lnet/minecraft/server/PlayerManager;sendToAll(Lnet/minecraft/network/packet/Packet;)V
intermediary method_14581
Lnet/minecraft/class_3324;method_14581(Lnet/minecraft/class_2596;)V
official a
Lawi;a(Laac;)V
-
sendToDimension
- Mappings:
Namespace Name Mixin selector named sendToDimension
Lnet/minecraft/server/PlayerManager;sendToDimension(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/registry/RegistryKey;)V
intermediary method_14589
Lnet/minecraft/class_3324;method_14589(Lnet/minecraft/class_2596;Lnet/minecraft/class_5321;)V
official a
Lawi;a(Laac;Laly;)V
-
sendToTeam
- Mappings:
Namespace Name Mixin selector named sendToTeam
Lnet/minecraft/server/PlayerManager;sendToTeam(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/text/Text;)V
intermediary method_14564
Lnet/minecraft/class_3324;method_14564(Lnet/minecraft/class_1657;Lnet/minecraft/class_2561;)V
official a
Lawi;a(Lcpw;Lxv;)V
-
sendToOtherTeams
- Mappings:
Namespace Name Mixin selector named sendToOtherTeams
Lnet/minecraft/server/PlayerManager;sendToOtherTeams(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/text/Text;)V
intermediary method_14565
Lnet/minecraft/class_3324;method_14565(Lnet/minecraft/class_1657;Lnet/minecraft/class_2561;)V
official b
Lawi;b(Lcpw;Lxv;)V
-
getPlayerNames
- Mappings:
Namespace Name Mixin selector named getPlayerNames
Lnet/minecraft/server/PlayerManager;getPlayerNames()[Ljava/lang/String;
intermediary method_14580
Lnet/minecraft/class_3324;method_14580()[Ljava/lang/String;
official e
Lawi;e()[Ljava/lang/String;
-
getUserBanList
- Mappings:
Namespace Name Mixin selector named getUserBanList
Lnet/minecraft/server/PlayerManager;getUserBanList()Lnet/minecraft/server/BannedPlayerList;
intermediary method_14563
Lnet/minecraft/class_3324;method_14563()Lnet/minecraft/class_3335;
official f
Lawi;f()Lawo;
-
getIpBanList
- Mappings:
Namespace Name Mixin selector named getIpBanList
Lnet/minecraft/server/PlayerManager;getIpBanList()Lnet/minecraft/server/BannedIpList;
intermediary method_14585
Lnet/minecraft/class_3324;method_14585()Lnet/minecraft/class_3317;
official g
Lawi;g()Lawf;
-
addToOperators
public void addToOperators(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named addToOperators
Lnet/minecraft/server/PlayerManager;addToOperators(Lcom/mojang/authlib/GameProfile;)V
intermediary method_14582
Lnet/minecraft/class_3324;method_14582(Lcom/mojang/authlib/GameProfile;)V
official a
Lawi;a(Lcom/mojang/authlib/GameProfile;)V
-
removeFromOperators
public void removeFromOperators(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named removeFromOperators
Lnet/minecraft/server/PlayerManager;removeFromOperators(Lcom/mojang/authlib/GameProfile;)V
intermediary method_14604
Lnet/minecraft/class_3324;method_14604(Lcom/mojang/authlib/GameProfile;)V
official b
Lawi;b(Lcom/mojang/authlib/GameProfile;)V
-
sendCommandTree
- Mappings:
Namespace Name Mixin selector named sendCommandTree
Lnet/minecraft/server/PlayerManager;sendCommandTree(Lnet/minecraft/server/network/ServerPlayerEntity;I)V
intermediary method_14596
Lnet/minecraft/class_3324;method_14596(Lnet/minecraft/class_3222;I)V
official a
Lawi;a(Lasi;I)V
-
isWhitelisted
public boolean isWhitelisted(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named isWhitelisted
Lnet/minecraft/server/PlayerManager;isWhitelisted(Lcom/mojang/authlib/GameProfile;)Z
intermediary method_14587
Lnet/minecraft/class_3324;method_14587(Lcom/mojang/authlib/GameProfile;)Z
official c
Lawi;c(Lcom/mojang/authlib/GameProfile;)Z
-
isOperator
public boolean isOperator(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named isOperator
Lnet/minecraft/server/PlayerManager;isOperator(Lcom/mojang/authlib/GameProfile;)Z
intermediary method_14569
Lnet/minecraft/class_3324;method_14569(Lcom/mojang/authlib/GameProfile;)Z
official f
Lawi;f(Lcom/mojang/authlib/GameProfile;)Z
-
getPlayer
- Mappings:
Namespace Name Mixin selector named getPlayer
Lnet/minecraft/server/PlayerManager;getPlayer(Ljava/lang/String;)Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary method_14566
Lnet/minecraft/class_3324;method_14566(Ljava/lang/String;)Lnet/minecraft/class_3222;
official a
Lawi;a(Ljava/lang/String;)Lasi;
-
sendToAround
public void sendToAround(@Nullable @Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet) - Mappings:
Namespace Name Mixin selector named sendToAround
Lnet/minecraft/server/PlayerManager;sendToAround(Lnet/minecraft/entity/player/PlayerEntity;DDDDLnet/minecraft/registry/RegistryKey;Lnet/minecraft/network/packet/Packet;)V
intermediary method_14605
Lnet/minecraft/class_3324;method_14605(Lnet/minecraft/class_1657;DDDDLnet/minecraft/class_5321;Lnet/minecraft/class_2596;)V
official a
Lawi;a(Lcpw;DDDDLaly;Laac;)V
-
saveAllPlayerData
public void saveAllPlayerData()- Mappings:
Namespace Name Mixin selector named saveAllPlayerData
Lnet/minecraft/server/PlayerManager;saveAllPlayerData()V
intermediary method_14617
Lnet/minecraft/class_3324;method_14617()V
official h
Lawi;h()V
-
getWhitelist
- Mappings:
Namespace Name Mixin selector named getWhitelist
Lnet/minecraft/server/PlayerManager;getWhitelist()Lnet/minecraft/server/Whitelist;
intermediary method_14590
Lnet/minecraft/class_3324;method_14590()Lnet/minecraft/class_3337;
official i
Lawi;i()Lawq;
-
getWhitelistedNames
- Mappings:
Namespace Name Mixin selector named getWhitelistedNames
Lnet/minecraft/server/PlayerManager;getWhitelistedNames()[Ljava/lang/String;
intermediary method_14560
Lnet/minecraft/class_3324;method_14560()[Ljava/lang/String;
official j
Lawi;j()[Ljava/lang/String;
-
getOpList
- Mappings:
Namespace Name Mixin selector named getOpList
Lnet/minecraft/server/PlayerManager;getOpList()Lnet/minecraft/server/OperatorList;
intermediary method_14603
Lnet/minecraft/class_3324;method_14603()Lnet/minecraft/class_3326;
official k
Lawi;k()Lawj;
-
getOpNames
- Mappings:
Namespace Name Mixin selector named getOpNames
Lnet/minecraft/server/PlayerManager;getOpNames()[Ljava/lang/String;
intermediary method_14584
Lnet/minecraft/class_3324;method_14584()[Ljava/lang/String;
official l
Lawi;l()[Ljava/lang/String;
-
reloadWhitelist
public void reloadWhitelist()- Mappings:
Namespace Name Mixin selector named reloadWhitelist
Lnet/minecraft/server/PlayerManager;reloadWhitelist()V
intermediary method_14599
Lnet/minecraft/class_3324;method_14599()V
official a
Lawi;a()V
-
sendWorldInfo
- Mappings:
Namespace Name Mixin selector named sendWorldInfo
Lnet/minecraft/server/PlayerManager;sendWorldInfo(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_14606
Lnet/minecraft/class_3324;method_14606(Lnet/minecraft/class_3222;Lnet/minecraft/class_3218;)V
official a
Lawi;a(Lasi;Lash;)V
-
sendPlayerStatus
- Mappings:
Namespace Name Mixin selector named sendPlayerStatus
Lnet/minecraft/server/PlayerManager;sendPlayerStatus(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_14594
Lnet/minecraft/class_3324;method_14594(Lnet/minecraft/class_3222;)V
official f
Lawi;f(Lasi;)V
-
getCurrentPlayerCount
public int getCurrentPlayerCount()- Mappings:
Namespace Name Mixin selector named getCurrentPlayerCount
Lnet/minecraft/server/PlayerManager;getCurrentPlayerCount()I
intermediary method_14574
Lnet/minecraft/class_3324;method_14574()I
official m
Lawi;m()I
-
getMaxPlayerCount
public int getMaxPlayerCount()- Mappings:
Namespace Name Mixin selector named getMaxPlayerCount
Lnet/minecraft/server/PlayerManager;getMaxPlayerCount()I
intermediary method_14592
Lnet/minecraft/class_3324;method_14592()I
official n
Lawi;n()I
-
isWhitelistEnabled
public boolean isWhitelistEnabled()- Mappings:
Namespace Name Mixin selector named isWhitelistEnabled
Lnet/minecraft/server/PlayerManager;isWhitelistEnabled()Z
intermediary method_14614
Lnet/minecraft/class_3324;method_14614()Z
official o
Lawi;o()Z
-
setWhitelistEnabled
public void setWhitelistEnabled(boolean whitelistEnabled) - Mappings:
Namespace Name Mixin selector named setWhitelistEnabled
Lnet/minecraft/server/PlayerManager;setWhitelistEnabled(Z)V
intermediary method_14557
Lnet/minecraft/class_3324;method_14557(Z)V
official a
Lawi;a(Z)V
-
getPlayersByIp
- Mappings:
Namespace Name Mixin selector named getPlayersByIp
Lnet/minecraft/server/PlayerManager;getPlayersByIp(Ljava/lang/String;)Ljava/util/List;
intermediary method_14559
Lnet/minecraft/class_3324;method_14559(Ljava/lang/String;)Ljava/util/List;
official b
Lawi;b(Ljava/lang/String;)Ljava/util/List;
-
getViewDistance
public int getViewDistance()- Mappings:
Namespace Name Mixin selector named getViewDistance
Lnet/minecraft/server/PlayerManager;getViewDistance()I
intermediary method_14568
Lnet/minecraft/class_3324;method_14568()I
official p
Lawi;p()I
-
getSimulationDistance
public int getSimulationDistance()- Mappings:
Namespace Name Mixin selector named getSimulationDistance
Lnet/minecraft/server/PlayerManager;getSimulationDistance()I
intermediary method_38651
Lnet/minecraft/class_3324;method_38651()I
official q
Lawi;q()I
-
getServer
- Mappings:
Namespace Name Mixin selector named getServer
Lnet/minecraft/server/PlayerManager;getServer()Lnet/minecraft/server/MinecraftServer;
intermediary method_14561
Lnet/minecraft/class_3324;method_14561()Lnet/minecraft/server/MinecraftServer;
official c
Lawi;c()Lnet/minecraft/server/MinecraftServer;
-
getUserData
Gets the user data of the player hosting the Minecraft server.- Returns:
- the user data of the host of the server if the server is an integrated server, otherwise
null
- Mappings:
Namespace Name Mixin selector named getUserData
Lnet/minecraft/server/PlayerManager;getUserData()Lnet/minecraft/nbt/NbtCompound;
intermediary method_14567
Lnet/minecraft/class_3324;method_14567()Lnet/minecraft/class_2487;
official r
Lawi;r()Lux;
-
setCheatsAllowed
public void setCheatsAllowed(boolean cheatsAllowed) - Mappings:
Namespace Name Mixin selector named setCheatsAllowed
Lnet/minecraft/server/PlayerManager;setCheatsAllowed(Z)V
intermediary method_14607
Lnet/minecraft/class_3324;method_14607(Z)V
official b
Lawi;b(Z)V
-
disconnectAllPlayers
public void disconnectAllPlayers()- Mappings:
Namespace Name Mixin selector named disconnectAllPlayers
Lnet/minecraft/server/PlayerManager;disconnectAllPlayers()V
intermediary method_14597
Lnet/minecraft/class_3324;method_14597()V
official s
Lawi;s()V
-
broadcast
Broadcasts a message to all players and the server console.- See Also:
- API Note:
- This is used to send general messages such as a death message or a join/leave message.
- Mappings:
Namespace Name Mixin selector named broadcast
Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/text/Text;Z)V
intermediary method_43514
Lnet/minecraft/class_3324;method_43514(Lnet/minecraft/class_2561;Z)V
official a
Lawi;a(Lxv;Z)V
-
broadcast
public void broadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, boolean overlay) Broadcasts a message to all players and the server console. A different message can be sent to a different player.- Parameters:
playerMessageFactory
- a function that takes the player to send the message to and returns either the text to send to them ornull
to indicate the message should not be sent to them- See Also:
- Mappings:
Namespace Name Mixin selector named broadcast
Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/text/Text;Ljava/util/function/Function;Z)V
intermediary method_43512
Lnet/minecraft/class_3324;method_43512(Lnet/minecraft/class_2561;Ljava/util/function/Function;Z)V
official a
Lawi;a(Lxv;Ljava/util/function/Function;Z)V
-
broadcast
public void broadcast(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.- See Also:
- API Note:
- This method is used to broadcast a message sent by commands like
MeCommand
orSayCommand
. - Mappings:
Namespace Name Mixin selector named broadcast
Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/MessageType$Parameters;)V
intermediary method_44166
Lnet/minecraft/class_3324;method_44166(Lnet/minecraft/class_7471;Lnet/minecraft/class_2168;Lnet/minecraft/class_2556$class_7602;)V
official a
Lawi;a(Lyl;Lew;Lxr$a;)V
-
broadcast
public void broadcast(SignedMessage message, ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.Chat messages have signatures. It is possible to use a bogus signature - such as
SignedMessage.ofUnsigned(java.lang.String)
- to send a chat message; however if the signature is invalid (e.g. because the text's content differs from the one sent by the client, or because the passed signature is invalid) the client will show a warning and can discard it depending on the client's options.- See Also:
- API Note:
- This method is used to broadcast a message sent by a player
through the chat screen
as well as through commands like
MeCommand
orSayCommand
. - Mappings:
Namespace Name Mixin selector named broadcast
Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/network/message/MessageType$Parameters;)V
intermediary method_43673
Lnet/minecraft/class_3324;method_43673(Lnet/minecraft/class_7471;Lnet/minecraft/class_3222;Lnet/minecraft/class_2556$class_7602;)V
official a
Lawi;a(Lyl;Lasi;Lxr$a;)V
-
broadcast
private void broadcast(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable @Nullable ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.Chat messages have signatures. It is possible to use a bogus signature - such as
SignedMessage.ofUnsigned(java.lang.String)
- to send a chat message; however if the signature is invalid (e.g. because the text's content differs from the one sent by the client, or because the passed signature is invalid) the client will show a warning and can discard it depending on the client's options.- Parameters:
shouldSendFiltered
- predicate that determines whether to send the filtered message for the given player- See Also:
- Mappings:
Namespace Name Mixin selector named broadcast
Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/network/message/SignedMessage;Ljava/util/function/Predicate;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/network/message/MessageType$Parameters;)V
intermediary method_44791
Lnet/minecraft/class_3324;method_44791(Lnet/minecraft/class_7471;Ljava/util/function/Predicate;Lnet/minecraft/class_3222;Lnet/minecraft/class_2556$class_7602;)V
official a
Lawi;a(Lyl;Ljava/util/function/Predicate;Lasi;Lxr$a;)V
-
verify
Returns whethermessage
is not expired and is verified.- Returns:
- whether
message
is not expired and is verified - Implementation Note:
- This only affects the server log. Unverified messages are still broadcast to other clients.
- Mappings:
Namespace Name Mixin selector named verify
Lnet/minecraft/server/PlayerManager;verify(Lnet/minecraft/network/message/SignedMessage;)Z
intermediary method_44793
Lnet/minecraft/class_3324;method_44793(Lnet/minecraft/class_7471;)Z
official a
Lawi;a(Lyl;)Z
-
createStatHandler
- Mappings:
Namespace Name Mixin selector named createStatHandler
Lnet/minecraft/server/PlayerManager;createStatHandler(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/stat/ServerStatHandler;
intermediary method_14583
Lnet/minecraft/class_3324;method_14583(Lnet/minecraft/class_1657;)Lnet/minecraft/class_3442;
official a
Lawi;a(Lcpw;)Laxl;
-
getAdvancementTracker
- Mappings:
Namespace Name Mixin selector named getAdvancementTracker
Lnet/minecraft/server/PlayerManager;getAdvancementTracker(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/advancement/PlayerAdvancementTracker;
intermediary method_14578
Lnet/minecraft/class_3324;method_14578(Lnet/minecraft/class_3222;)Lnet/minecraft/class_2985;
official g
Lawi;g(Lasi;)Lamh;
-
setViewDistance
public void setViewDistance(int viewDistance) - Mappings:
Namespace Name Mixin selector named setViewDistance
Lnet/minecraft/server/PlayerManager;setViewDistance(I)V
intermediary method_14608
Lnet/minecraft/class_3324;method_14608(I)V
official a
Lawi;a(I)V
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance) - Mappings:
Namespace Name Mixin selector named setSimulationDistance
Lnet/minecraft/server/PlayerManager;setSimulationDistance(I)V
intermediary method_38650
Lnet/minecraft/class_3324;method_38650(I)V
official b
Lawi;b(I)V
-
getPlayerList
Gets a list of all players on a Minecraft server. This list should not be modified!- Mappings:
Namespace Name Mixin selector named getPlayerList
Lnet/minecraft/server/PlayerManager;getPlayerList()Ljava/util/List;
intermediary method_14571
Lnet/minecraft/class_3324;method_14571()Ljava/util/List;
official t
Lawi;t()Ljava/util/List;
-
getPlayer
- Mappings:
Namespace Name Mixin selector named getPlayer
Lnet/minecraft/server/PlayerManager;getPlayer(Ljava/util/UUID;)Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary method_14602
Lnet/minecraft/class_3324;method_14602(Ljava/util/UUID;)Lnet/minecraft/class_3222;
official a
Lawi;a(Ljava/util/UUID;)Lasi;
-
canBypassPlayerLimit
public boolean canBypassPlayerLimit(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named canBypassPlayerLimit
Lnet/minecraft/server/PlayerManager;canBypassPlayerLimit(Lcom/mojang/authlib/GameProfile;)Z
intermediary method_14609
Lnet/minecraft/class_3324;method_14609(Lcom/mojang/authlib/GameProfile;)Z
official d
Lawi;d(Lcom/mojang/authlib/GameProfile;)Z
-
onDataPacksReloaded
public void onDataPacksReloaded()- Mappings:
Namespace Name Mixin selector named onDataPacksReloaded
Lnet/minecraft/server/PlayerManager;onDataPacksReloaded()V
intermediary method_14572
Lnet/minecraft/class_3324;method_14572()V
official u
Lawi;u()V
-
areCheatsAllowed
public boolean areCheatsAllowed()- Mappings:
Namespace Name Mixin selector named areCheatsAllowed
Lnet/minecraft/server/PlayerManager;areCheatsAllowed()Z
intermediary method_14579
Lnet/minecraft/class_3324;method_14579()Z
official v
Lawi;v()Z
-