Class PlayerManager
- Direct Known Subclasses:
DedicatedPlayerManager,IntegratedPlayerManager
- Mappings:
Namespace Name named net/minecraft/server/PlayerManagerintermediary net/minecraft/class_3324official aur
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<UUID, PlayerAdvancementTracker> static final Filestatic final Fileprivate final BannedIpListprivate final BannedPlayerListprivate booleanprivate static final SimpleDateFormatstatic final Textprivate static final booleanstatic final Textprivate static final intprivate intprivate static final Loggerprotected final intstatic final Fileprivate final OperatorListprivate final Map<UUID, ServerPlayerEntity> private final List<ServerPlayerEntity> private final CombinedDynamicRegistries<ServerDynamicRegistryType> private final PlayerSaveHandlerprivate final MinecraftServerprivate intprivate final Map<UUID, ServerStatHandler> private intprivate final Whiteliststatic final Fileprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionPlayerManager(MinecraftServer server, CombinedDynamicRegistries<ServerDynamicRegistryType> registryManager, PlayerSaveHandler saveHandler, int maxPlayers) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToOperators(com.mojang.authlib.GameProfile profile) booleanprivate voidbroadcast(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.voidbroadcast(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.voidbroadcast(SignedMessage message, ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.voidBroadcasts a message to all players and the server console.voidbroadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, boolean overlay) Broadcasts a message to all players and the server console.booleancanBypassPlayerLimit(com.mojang.authlib.GameProfile profile) checkCanJoin(SocketAddress address, com.mojang.authlib.GameProfile profile) createPlayer(com.mojang.authlib.GameProfile profile, SyncedClientOptions syncedOptions) createStatHandler(PlayerEntity player) voidbooleandisconnectDuplicateLogins(com.mojang.authlib.GameProfile profile) intintString[]Gets a list of all players on a Minecraft server.String[]getPlayersByIp(String ip) intGets the user data of the player hosting the Minecraft server.intString[]booleanisOperator(com.mojang.authlib.GameProfile profile) booleanisWhitelisted(com.mojang.authlib.GameProfile profile) booleanloadPlayerData(ServerPlayerEntity player) voidvoidonPlayerConnect(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData) voidvoidremove(ServerPlayerEntity player) voidremoveFromOperators(com.mojang.authlib.GameProfile profile) respawnPlayer(ServerPlayerEntity player, boolean alive, Entity.RemovalReason removalReason) voidprotected voidsavePlayerData(ServerPlayerEntity player) voidsendCommandTree(ServerPlayerEntity player) private voidsendCommandTree(ServerPlayerEntity player, int permissionLevel) voidsendPlayerStatus(ServerPlayerEntity player) protected voidsendScoreboard(ServerScoreboard scoreboard, ServerPlayerEntity player) voidsendStatusEffects(LivingEntity entity, ServerPlayNetworkHandler networkHandler) voidsendStatusEffects(ServerPlayerEntity player) voidvoidsendToAround(@Nullable PlayerEntity player, double x, double y, double z, double distance, RegistryKey<World> worldKey, Packet<?> packet) voidsendToDimension(Packet<?> packet, RegistryKey<World> dimension) voidsendToOtherTeams(PlayerEntity source, Text message) voidsendToTeam(PlayerEntity source, Text message) voidsendWorldInfo(ServerPlayerEntity player, ServerWorld world) voidsetCheatsAllowed(boolean cheatsAllowed) voidsetMainWorld(ServerWorld world) voidsetSimulationDistance(int simulationDistance) voidsetViewDistance(int viewDistance) voidsetWhitelistEnabled(boolean whitelistEnabled) voidprivate booleanverify(SignedMessage message) Returns whethermessageis not expired and is verified.
-
Field Details
-
BANNED_PLAYERS_FILE
- Mappings:
Namespace Name Mixin selector named BANNED_PLAYERS_FILELnet/minecraft/server/PlayerManager;BANNED_PLAYERS_FILE:Ljava/io/File;intermediary field_14355Lnet/minecraft/class_3324;field_14355:Ljava/io/File;official aLaur;a:Ljava/io/File;
-
BANNED_IPS_FILE
- Mappings:
Namespace Name Mixin selector named BANNED_IPS_FILELnet/minecraft/server/PlayerManager;BANNED_IPS_FILE:Ljava/io/File;intermediary field_14364Lnet/minecraft/class_3324;field_14364:Ljava/io/File;official bLaur;b:Ljava/io/File;
-
OPERATORS_FILE
- Mappings:
Namespace Name Mixin selector named OPERATORS_FILELnet/minecraft/server/PlayerManager;OPERATORS_FILE:Ljava/io/File;intermediary field_14348Lnet/minecraft/class_3324;field_14348:Ljava/io/File;official cLaur;c:Ljava/io/File;
-
WHITELIST_FILE
- Mappings:
Namespace Name Mixin selector named WHITELIST_FILELnet/minecraft/server/PlayerManager;WHITELIST_FILE:Ljava/io/File;intermediary field_14343Lnet/minecraft/class_3324;field_14343:Ljava/io/File;official dLaur;d:Ljava/io/File;
-
FILTERED_FULL_TEXT
- Mappings:
Namespace Name Mixin selector named FILTERED_FULL_TEXTLnet/minecraft/server/PlayerManager;FILTERED_FULL_TEXT:Lnet/minecraft/text/Text;intermediary field_39921Lnet/minecraft/class_3324;field_39921:Lnet/minecraft/class_2561;official eLaur;e:Lwz;
-
DUPLICATE_LOGIN_TEXT
- Mappings:
Namespace Name Mixin selector named DUPLICATE_LOGIN_TEXTLnet/minecraft/server/PlayerManager;DUPLICATE_LOGIN_TEXT:Lnet/minecraft/text/Text;intermediary field_45061Lnet/minecraft/class_3324;field_45061:Lnet/minecraft/class_2561;official fLaur;f:Lwz;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/PlayerManager;LOGGER:Lorg/slf4j/Logger;intermediary field_14349Lnet/minecraft/class_3324;field_14349:Lorg/slf4j/Logger;official hLaur;h:Lorg/slf4j/Logger;
-
LATENCY_UPDATE_INTERVAL
private static final int LATENCY_UPDATE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named LATENCY_UPDATE_INTERVALLnet/minecraft/server/PlayerManager;LATENCY_UPDATE_INTERVAL:Iintermediary field_29790Lnet/minecraft/class_3324;field_29790:Iofficial iLaur;i:I
-
DATE_FORMATTER
- Mappings:
Namespace Name Mixin selector named DATE_FORMATTERLnet/minecraft/server/PlayerManager;DATE_FORMATTER:Ljava/text/SimpleDateFormat;intermediary field_14356Lnet/minecraft/class_3324;field_14356:Ljava/text/SimpleDateFormat;official jLaur;j:Ljava/text/SimpleDateFormat;
-
field_29791
private static final boolean field_29791- See Also:
- Mappings:
Namespace Name Mixin selector named field_29791Lnet/minecraft/server/PlayerManager;field_29791:Zintermediary field_29791Lnet/minecraft/class_3324;field_29791:Zofficial zLaur;z:Z
-
server
- Mappings:
Namespace Name Mixin selector named serverLnet/minecraft/server/PlayerManager;server:Lnet/minecraft/server/MinecraftServer;intermediary field_14360Lnet/minecraft/class_3324;field_14360:Lnet/minecraft/server/MinecraftServer;official kLaur;k:Lnet/minecraft/server/MinecraftServer;
-
players
- Mappings:
Namespace Name Mixin selector named playersLnet/minecraft/server/PlayerManager;players:Ljava/util/List;intermediary field_14351Lnet/minecraft/class_3324;field_14351:Ljava/util/List;official lLaur;l:Ljava/util/List;
-
playerMap
- Mappings:
Namespace Name Mixin selector named playerMapLnet/minecraft/server/PlayerManager;playerMap:Ljava/util/Map;intermediary field_14354Lnet/minecraft/class_3324;field_14354:Ljava/util/Map;official mLaur;m:Ljava/util/Map;
-
bannedProfiles
- Mappings:
Namespace Name Mixin selector named bannedProfilesLnet/minecraft/server/PlayerManager;bannedProfiles:Lnet/minecraft/server/BannedPlayerList;intermediary field_14344Lnet/minecraft/class_3324;field_14344:Lnet/minecraft/class_3335;official nLaur;n:Lauy;
-
bannedIps
- Mappings:
Namespace Name Mixin selector named bannedIpsLnet/minecraft/server/PlayerManager;bannedIps:Lnet/minecraft/server/BannedIpList;intermediary field_14345Lnet/minecraft/class_3324;field_14345:Lnet/minecraft/class_3317;official oLaur;o:Lauo;
-
ops
- Mappings:
Namespace Name Mixin selector named opsLnet/minecraft/server/PlayerManager;ops:Lnet/minecraft/server/OperatorList;intermediary field_14353Lnet/minecraft/class_3324;field_14353:Lnet/minecraft/class_3326;official pLaur;p:Laus;
-
whitelist
- Mappings:
Namespace Name Mixin selector named whitelistLnet/minecraft/server/PlayerManager;whitelist:Lnet/minecraft/server/Whitelist;intermediary field_14361Lnet/minecraft/class_3324;field_14361:Lnet/minecraft/class_3337;official qLaur;q:Lava;
-
statisticsMap
- Mappings:
Namespace Name Mixin selector named statisticsMapLnet/minecraft/server/PlayerManager;statisticsMap:Ljava/util/Map;intermediary field_14362Lnet/minecraft/class_3324;field_14362:Ljava/util/Map;official rLaur;r:Ljava/util/Map;
-
advancementTrackers
- Mappings:
Namespace Name Mixin selector named advancementTrackersLnet/minecraft/server/PlayerManager;advancementTrackers:Ljava/util/Map;intermediary field_14346Lnet/minecraft/class_3324;field_14346:Ljava/util/Map;official sLaur;s:Ljava/util/Map;
-
saveHandler
- Mappings:
Namespace Name Mixin selector named saveHandlerLnet/minecraft/server/PlayerManager;saveHandler:Lnet/minecraft/world/PlayerSaveHandler;intermediary field_14358Lnet/minecraft/class_3324;field_14358:Lnet/minecraft/class_29;official tLaur;t:Leri;
-
whitelistEnabled
private boolean whitelistEnabled- Mappings:
Namespace Name Mixin selector named whitelistEnabledLnet/minecraft/server/PlayerManager;whitelistEnabled:Zintermediary field_14352Lnet/minecraft/class_3324;field_14352:Zofficial uLaur;u:Z
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManagerLnet/minecraft/server/PlayerManager;registryManager:Lnet/minecraft/registry/CombinedDynamicRegistries;intermediary field_24626Lnet/minecraft/class_3324;field_24626:Lnet/minecraft/class_7780;official vLaur;v:Ljt;
-
maxPlayers
protected final int maxPlayers- Mappings:
Namespace Name Mixin selector named maxPlayersLnet/minecraft/server/PlayerManager;maxPlayers:Iintermediary field_14347Lnet/minecraft/class_3324;field_14347:Iofficial gLaur;g:I
-
viewDistance
private int viewDistance- Mappings:
Namespace Name Mixin selector named viewDistanceLnet/minecraft/server/PlayerManager;viewDistance:Iintermediary field_14359Lnet/minecraft/class_3324;field_14359:Iofficial wLaur;w:I
-
simulationDistance
private int simulationDistance- Mappings:
Namespace Name Mixin selector named simulationDistanceLnet/minecraft/server/PlayerManager;simulationDistance:Iintermediary field_34895Lnet/minecraft/class_3324;field_34895:Iofficial xLaur;x:I
-
cheatsAllowed
private boolean cheatsAllowed- Mappings:
Namespace Name Mixin selector named cheatsAllowedLnet/minecraft/server/PlayerManager;cheatsAllowed:Zintermediary field_14350Lnet/minecraft/class_3324;field_14350:Zofficial yLaur;y:Z
-
latencyUpdateTimer
private int latencyUpdateTimer- Mappings:
Namespace Name Mixin selector named latencyUpdateTimerLnet/minecraft/server/PlayerManager;latencyUpdateTimer:Iintermediary field_14357Lnet/minecraft/class_3324;field_14357:Iofficial ALaur;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)Vintermediary <init>Lnet/minecraft/class_3324;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_7780;Lnet/minecraft/class_29;I)Vofficial <init>Laur;<init>(Lnet/minecraft/server/MinecraftServer;Ljt;Leri;I)V
-
-
Method Details
-
onPlayerConnect
public void onPlayerConnect(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData) - Mappings:
Namespace Name Mixin selector named onPlayerConnectLnet/minecraft/server/PlayerManager;onPlayerConnect(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ConnectedClientData;)Vintermediary method_14570Lnet/minecraft/class_3324;method_14570(Lnet/minecraft/class_2535;Lnet/minecraft/class_3222;Lnet/minecraft/class_8792;)Vofficial aLaur;a(Lvt;Laqv;Larj;)V
-
sendScoreboard
- Mappings:
Namespace Name Mixin selector named sendScoreboardLnet/minecraft/server/PlayerManager;sendScoreboard(Lnet/minecraft/scoreboard/ServerScoreboard;Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_14588Lnet/minecraft/class_3324;method_14588(Lnet/minecraft/class_2995;Lnet/minecraft/class_3222;)Vofficial aLaur;a(Lalk;Laqv;)V
-
setMainWorld
- Mappings:
Namespace Name Mixin selector named setMainWorldLnet/minecraft/server/PlayerManager;setMainWorld(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_14591Lnet/minecraft/class_3324;method_14591(Lnet/minecraft/class_3218;)Vofficial aLaur;a(Laqu;)V
-
loadPlayerData
- Mappings:
Namespace Name Mixin selector named loadPlayerDataLnet/minecraft/server/PlayerManager;loadPlayerData(Lnet/minecraft/server/network/ServerPlayerEntity;)Ljava/util/Optional;intermediary method_14600Lnet/minecraft/class_3324;method_14600(Lnet/minecraft/class_3222;)Ljava/util/Optional;official aLaur;a(Laqv;)Ljava/util/Optional;
-
savePlayerData
- Mappings:
Namespace Name Mixin selector named savePlayerDataLnet/minecraft/server/PlayerManager;savePlayerData(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_14577Lnet/minecraft/class_3324;method_14577(Lnet/minecraft/class_3222;)Vofficial bLaur;b(Laqv;)V
-
remove
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/server/PlayerManager;remove(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_14611Lnet/minecraft/class_3324;method_14611(Lnet/minecraft/class_3222;)Vofficial cLaur;c(Laqv;)V
-
checkCanJoin
@Nullable public @Nullable Text checkCanJoin(SocketAddress address, com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named checkCanJoinLnet/minecraft/server/PlayerManager;checkCanJoin(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;intermediary method_14586Lnet/minecraft/class_3324;method_14586(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_2561;official aLaur;a(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lwz;
-
createPlayer
public ServerPlayerEntity createPlayer(com.mojang.authlib.GameProfile profile, SyncedClientOptions syncedOptions) - Mappings:
Namespace Name Mixin selector named createPlayerLnet/minecraft/server/PlayerManager;createPlayer(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_14613Lnet/minecraft/class_3324;method_14613(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_8791;)Lnet/minecraft/class_3222;official aLaur;a(Lcom/mojang/authlib/GameProfile;Laqh;)Laqv;
-
disconnectDuplicateLogins
public boolean disconnectDuplicateLogins(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named disconnectDuplicateLoginsLnet/minecraft/server/PlayerManager;disconnectDuplicateLogins(Lcom/mojang/authlib/GameProfile;)Zintermediary method_52449Lnet/minecraft/class_3324;method_52449(Lcom/mojang/authlib/GameProfile;)Zofficial eLaur;e(Lcom/mojang/authlib/GameProfile;)Z
-
respawnPlayer
public ServerPlayerEntity respawnPlayer(ServerPlayerEntity player, boolean alive, Entity.RemovalReason removalReason) - Mappings:
Namespace Name Mixin selector named respawnPlayerLnet/minecraft/server/PlayerManager;respawnPlayer(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/entity/Entity$RemovalReason;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_14556Lnet/minecraft/class_3324;method_14556(Lnet/minecraft/class_3222;ZLnet/minecraft/class_1297$class_5529;)Lnet/minecraft/class_3222;official aLaur;a(Laqv;ZLbsr$c;)Laqv;
-
sendStatusEffects
- Mappings:
Namespace Name Mixin selector named sendStatusEffectsLnet/minecraft/server/PlayerManager;sendStatusEffects(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_60598Lnet/minecraft/class_3324;method_60598(Lnet/minecraft/class_3222;)Vofficial dLaur;d(Laqv;)V
-
sendStatusEffects
- Mappings:
Namespace Name Mixin selector named sendStatusEffectsLnet/minecraft/server/PlayerManager;sendStatusEffects(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/server/network/ServerPlayNetworkHandler;)Vintermediary method_60597Lnet/minecraft/class_3324;method_60597(Lnet/minecraft/class_1309;Lnet/minecraft/class_3244;)Vofficial aLaur;a(Lbtn;Laru;)V
-
sendCommandTree
- Mappings:
Namespace Name Mixin selector named sendCommandTreeLnet/minecraft/server/PlayerManager;sendCommandTree(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_14576Lnet/minecraft/class_3324;method_14576(Lnet/minecraft/class_3222;)Vofficial eLaur;e(Laqv;)V
-
updatePlayerLatency
public void updatePlayerLatency()- Mappings:
Namespace Name Mixin selector named updatePlayerLatencyLnet/minecraft/server/PlayerManager;updatePlayerLatency()Vintermediary method_14601Lnet/minecraft/class_3324;method_14601()Vofficial dLaur;d()V
-
sendToAll
- Mappings:
Namespace Name Mixin selector named sendToAllLnet/minecraft/server/PlayerManager;sendToAll(Lnet/minecraft/network/packet/Packet;)Vintermediary method_14581Lnet/minecraft/class_3324;method_14581(Lnet/minecraft/class_2596;)Vofficial aLaur;a(Lzg;)V
-
sendToDimension
- Mappings:
Namespace Name Mixin selector named sendToDimensionLnet/minecraft/server/PlayerManager;sendToDimension(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/registry/RegistryKey;)Vintermediary method_14589Lnet/minecraft/class_3324;method_14589(Lnet/minecraft/class_2596;Lnet/minecraft/class_5321;)Vofficial aLaur;a(Lzg;Lakq;)V
-
sendToTeam
- Mappings:
Namespace Name Mixin selector named sendToTeamLnet/minecraft/server/PlayerManager;sendToTeam(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/text/Text;)Vintermediary method_14564Lnet/minecraft/class_3324;method_14564(Lnet/minecraft/class_1657;Lnet/minecraft/class_2561;)Vofficial aLaur;a(Lcmx;Lwz;)V
-
sendToOtherTeams
- Mappings:
Namespace Name Mixin selector named sendToOtherTeamsLnet/minecraft/server/PlayerManager;sendToOtherTeams(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/text/Text;)Vintermediary method_14565Lnet/minecraft/class_3324;method_14565(Lnet/minecraft/class_1657;Lnet/minecraft/class_2561;)Vofficial bLaur;b(Lcmx;Lwz;)V
-
getPlayerNames
- Mappings:
Namespace Name Mixin selector named getPlayerNamesLnet/minecraft/server/PlayerManager;getPlayerNames()[Ljava/lang/String;intermediary method_14580Lnet/minecraft/class_3324;method_14580()[Ljava/lang/String;official eLaur;e()[Ljava/lang/String;
-
getUserBanList
- Mappings:
Namespace Name Mixin selector named getUserBanListLnet/minecraft/server/PlayerManager;getUserBanList()Lnet/minecraft/server/BannedPlayerList;intermediary method_14563Lnet/minecraft/class_3324;method_14563()Lnet/minecraft/class_3335;official fLaur;f()Lauy;
-
getIpBanList
- Mappings:
Namespace Name Mixin selector named getIpBanListLnet/minecraft/server/PlayerManager;getIpBanList()Lnet/minecraft/server/BannedIpList;intermediary method_14585Lnet/minecraft/class_3324;method_14585()Lnet/minecraft/class_3317;official gLaur;g()Lauo;
-
addToOperators
public void addToOperators(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named addToOperatorsLnet/minecraft/server/PlayerManager;addToOperators(Lcom/mojang/authlib/GameProfile;)Vintermediary method_14582Lnet/minecraft/class_3324;method_14582(Lcom/mojang/authlib/GameProfile;)Vofficial aLaur;a(Lcom/mojang/authlib/GameProfile;)V
-
removeFromOperators
public void removeFromOperators(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named removeFromOperatorsLnet/minecraft/server/PlayerManager;removeFromOperators(Lcom/mojang/authlib/GameProfile;)Vintermediary method_14604Lnet/minecraft/class_3324;method_14604(Lcom/mojang/authlib/GameProfile;)Vofficial bLaur;b(Lcom/mojang/authlib/GameProfile;)V
-
sendCommandTree
- Mappings:
Namespace Name Mixin selector named sendCommandTreeLnet/minecraft/server/PlayerManager;sendCommandTree(Lnet/minecraft/server/network/ServerPlayerEntity;I)Vintermediary method_14596Lnet/minecraft/class_3324;method_14596(Lnet/minecraft/class_3222;I)Vofficial aLaur;a(Laqv;I)V
-
isWhitelisted
public boolean isWhitelisted(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named isWhitelistedLnet/minecraft/server/PlayerManager;isWhitelisted(Lcom/mojang/authlib/GameProfile;)Zintermediary method_14587Lnet/minecraft/class_3324;method_14587(Lcom/mojang/authlib/GameProfile;)Zofficial cLaur;c(Lcom/mojang/authlib/GameProfile;)Z
-
isOperator
public boolean isOperator(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named isOperatorLnet/minecraft/server/PlayerManager;isOperator(Lcom/mojang/authlib/GameProfile;)Zintermediary method_14569Lnet/minecraft/class_3324;method_14569(Lcom/mojang/authlib/GameProfile;)Zofficial fLaur;f(Lcom/mojang/authlib/GameProfile;)Z
-
getPlayer
- Mappings:
Namespace Name Mixin selector named getPlayerLnet/minecraft/server/PlayerManager;getPlayer(Ljava/lang/String;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_14566Lnet/minecraft/class_3324;method_14566(Ljava/lang/String;)Lnet/minecraft/class_3222;official aLaur;a(Ljava/lang/String;)Laqv;
-
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 sendToAroundLnet/minecraft/server/PlayerManager;sendToAround(Lnet/minecraft/entity/player/PlayerEntity;DDDDLnet/minecraft/registry/RegistryKey;Lnet/minecraft/network/packet/Packet;)Vintermediary method_14605Lnet/minecraft/class_3324;method_14605(Lnet/minecraft/class_1657;DDDDLnet/minecraft/class_5321;Lnet/minecraft/class_2596;)Vofficial aLaur;a(Lcmx;DDDDLakq;Lzg;)V
-
saveAllPlayerData
public void saveAllPlayerData()- Mappings:
Namespace Name Mixin selector named saveAllPlayerDataLnet/minecraft/server/PlayerManager;saveAllPlayerData()Vintermediary method_14617Lnet/minecraft/class_3324;method_14617()Vofficial hLaur;h()V
-
getWhitelist
- Mappings:
Namespace Name Mixin selector named getWhitelistLnet/minecraft/server/PlayerManager;getWhitelist()Lnet/minecraft/server/Whitelist;intermediary method_14590Lnet/minecraft/class_3324;method_14590()Lnet/minecraft/class_3337;official iLaur;i()Lava;
-
getWhitelistedNames
- Mappings:
Namespace Name Mixin selector named getWhitelistedNamesLnet/minecraft/server/PlayerManager;getWhitelistedNames()[Ljava/lang/String;intermediary method_14560Lnet/minecraft/class_3324;method_14560()[Ljava/lang/String;official jLaur;j()[Ljava/lang/String;
-
getOpList
- Mappings:
Namespace Name Mixin selector named getOpListLnet/minecraft/server/PlayerManager;getOpList()Lnet/minecraft/server/OperatorList;intermediary method_14603Lnet/minecraft/class_3324;method_14603()Lnet/minecraft/class_3326;official kLaur;k()Laus;
-
getOpNames
- Mappings:
Namespace Name Mixin selector named getOpNamesLnet/minecraft/server/PlayerManager;getOpNames()[Ljava/lang/String;intermediary method_14584Lnet/minecraft/class_3324;method_14584()[Ljava/lang/String;official lLaur;l()[Ljava/lang/String;
-
reloadWhitelist
public void reloadWhitelist()- Mappings:
Namespace Name Mixin selector named reloadWhitelistLnet/minecraft/server/PlayerManager;reloadWhitelist()Vintermediary method_14599Lnet/minecraft/class_3324;method_14599()Vofficial aLaur;a()V
-
sendWorldInfo
- Mappings:
Namespace Name Mixin selector named sendWorldInfoLnet/minecraft/server/PlayerManager;sendWorldInfo(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_14606Lnet/minecraft/class_3324;method_14606(Lnet/minecraft/class_3222;Lnet/minecraft/class_3218;)Vofficial aLaur;a(Laqv;Laqu;)V
-
sendPlayerStatus
- Mappings:
Namespace Name Mixin selector named sendPlayerStatusLnet/minecraft/server/PlayerManager;sendPlayerStatus(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_14594Lnet/minecraft/class_3324;method_14594(Lnet/minecraft/class_3222;)Vofficial fLaur;f(Laqv;)V
-
getCurrentPlayerCount
public int getCurrentPlayerCount()- Mappings:
Namespace Name Mixin selector named getCurrentPlayerCountLnet/minecraft/server/PlayerManager;getCurrentPlayerCount()Iintermediary method_14574Lnet/minecraft/class_3324;method_14574()Iofficial mLaur;m()I
-
getMaxPlayerCount
public int getMaxPlayerCount()- Mappings:
Namespace Name Mixin selector named getMaxPlayerCountLnet/minecraft/server/PlayerManager;getMaxPlayerCount()Iintermediary method_14592Lnet/minecraft/class_3324;method_14592()Iofficial nLaur;n()I
-
isWhitelistEnabled
public boolean isWhitelistEnabled()- Mappings:
Namespace Name Mixin selector named isWhitelistEnabledLnet/minecraft/server/PlayerManager;isWhitelistEnabled()Zintermediary method_14614Lnet/minecraft/class_3324;method_14614()Zofficial oLaur;o()Z
-
setWhitelistEnabled
public void setWhitelistEnabled(boolean whitelistEnabled) - Mappings:
Namespace Name Mixin selector named setWhitelistEnabledLnet/minecraft/server/PlayerManager;setWhitelistEnabled(Z)Vintermediary method_14557Lnet/minecraft/class_3324;method_14557(Z)Vofficial aLaur;a(Z)V
-
getPlayersByIp
- Mappings:
Namespace Name Mixin selector named getPlayersByIpLnet/minecraft/server/PlayerManager;getPlayersByIp(Ljava/lang/String;)Ljava/util/List;intermediary method_14559Lnet/minecraft/class_3324;method_14559(Ljava/lang/String;)Ljava/util/List;official bLaur;b(Ljava/lang/String;)Ljava/util/List;
-
getViewDistance
public int getViewDistance()- Mappings:
Namespace Name Mixin selector named getViewDistanceLnet/minecraft/server/PlayerManager;getViewDistance()Iintermediary method_14568Lnet/minecraft/class_3324;method_14568()Iofficial pLaur;p()I
-
getSimulationDistance
public int getSimulationDistance()- Mappings:
Namespace Name Mixin selector named getSimulationDistanceLnet/minecraft/server/PlayerManager;getSimulationDistance()Iintermediary method_38651Lnet/minecraft/class_3324;method_38651()Iofficial qLaur;q()I
-
getServer
- Mappings:
Namespace Name Mixin selector named getServerLnet/minecraft/server/PlayerManager;getServer()Lnet/minecraft/server/MinecraftServer;intermediary method_14561Lnet/minecraft/class_3324;method_14561()Lnet/minecraft/server/MinecraftServer;official cLaur;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 getUserDataLnet/minecraft/server/PlayerManager;getUserData()Lnet/minecraft/nbt/NbtCompound;intermediary method_14567Lnet/minecraft/class_3324;method_14567()Lnet/minecraft/class_2487;official rLaur;r()Lub;
-
setCheatsAllowed
public void setCheatsAllowed(boolean cheatsAllowed) - Mappings:
Namespace Name Mixin selector named setCheatsAllowedLnet/minecraft/server/PlayerManager;setCheatsAllowed(Z)Vintermediary method_14607Lnet/minecraft/class_3324;method_14607(Z)Vofficial bLaur;b(Z)V
-
disconnectAllPlayers
public void disconnectAllPlayers()- Mappings:
Namespace Name Mixin selector named disconnectAllPlayersLnet/minecraft/server/PlayerManager;disconnectAllPlayers()Vintermediary method_14597Lnet/minecraft/class_3324;method_14597()Vofficial sLaur;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 broadcastLnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/text/Text;Z)Vintermediary method_43514Lnet/minecraft/class_3324;method_43514(Lnet/minecraft/class_2561;Z)Vofficial aLaur;a(Lwz;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 ornullto indicate the message should not be sent to them- See Also:
- Mappings:
Namespace Name Mixin selector named broadcastLnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/text/Text;Ljava/util/function/Function;Z)Vintermediary method_43512Lnet/minecraft/class_3324;method_43512(Lnet/minecraft/class_2561;Ljava/util/function/Function;Z)Vofficial aLaur;a(Lwz;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
MeCommandorSayCommand. - Mappings:
Namespace Name Mixin selector named broadcastLnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/message/MessageType$Parameters;)Vintermediary method_44166Lnet/minecraft/class_3324;method_44166(Lnet/minecraft/class_7471;Lnet/minecraft/class_2168;Lnet/minecraft/class_2556$class_7602;)Vofficial aLaur;a(Lxp;Let;Lwv$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
MeCommandorSayCommand. - Mappings:
Namespace Name Mixin selector named broadcastLnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/network/message/MessageType$Parameters;)Vintermediary method_43673Lnet/minecraft/class_3324;method_43673(Lnet/minecraft/class_7471;Lnet/minecraft/class_3222;Lnet/minecraft/class_2556$class_7602;)Vofficial aLaur;a(Lxp;Laqv;Lwv$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 broadcastLnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/network/message/SignedMessage;Ljava/util/function/Predicate;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/network/message/MessageType$Parameters;)Vintermediary method_44791Lnet/minecraft/class_3324;method_44791(Lnet/minecraft/class_7471;Ljava/util/function/Predicate;Lnet/minecraft/class_3222;Lnet/minecraft/class_2556$class_7602;)Vofficial aLaur;a(Lxp;Ljava/util/function/Predicate;Laqv;Lwv$a;)V
-
verify
Returns whethermessageis not expired and is verified.- Returns:
- whether
messageis 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 verifyLnet/minecraft/server/PlayerManager;verify(Lnet/minecraft/network/message/SignedMessage;)Zintermediary method_44793Lnet/minecraft/class_3324;method_44793(Lnet/minecraft/class_7471;)Zofficial aLaur;a(Lxp;)Z
-
createStatHandler
- Mappings:
Namespace Name Mixin selector named createStatHandlerLnet/minecraft/server/PlayerManager;createStatHandler(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/stat/ServerStatHandler;intermediary method_14583Lnet/minecraft/class_3324;method_14583(Lnet/minecraft/class_1657;)Lnet/minecraft/class_3442;official aLaur;a(Lcmx;)Lavv;
-
getAdvancementTracker
- Mappings:
Namespace Name Mixin selector named getAdvancementTrackerLnet/minecraft/server/PlayerManager;getAdvancementTracker(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/advancement/PlayerAdvancementTracker;intermediary method_14578Lnet/minecraft/class_3324;method_14578(Lnet/minecraft/class_3222;)Lnet/minecraft/class_2985;official gLaur;g(Laqv;)Lakz;
-
setViewDistance
public void setViewDistance(int viewDistance) - Mappings:
Namespace Name Mixin selector named setViewDistanceLnet/minecraft/server/PlayerManager;setViewDistance(I)Vintermediary method_14608Lnet/minecraft/class_3324;method_14608(I)Vofficial aLaur;a(I)V
-
setSimulationDistance
public void setSimulationDistance(int simulationDistance) - Mappings:
Namespace Name Mixin selector named setSimulationDistanceLnet/minecraft/server/PlayerManager;setSimulationDistance(I)Vintermediary method_38650Lnet/minecraft/class_3324;method_38650(I)Vofficial bLaur;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 getPlayerListLnet/minecraft/server/PlayerManager;getPlayerList()Ljava/util/List;intermediary method_14571Lnet/minecraft/class_3324;method_14571()Ljava/util/List;official tLaur;t()Ljava/util/List;
-
getPlayer
- Mappings:
Namespace Name Mixin selector named getPlayerLnet/minecraft/server/PlayerManager;getPlayer(Ljava/util/UUID;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_14602Lnet/minecraft/class_3324;method_14602(Ljava/util/UUID;)Lnet/minecraft/class_3222;official aLaur;a(Ljava/util/UUID;)Laqv;
-
canBypassPlayerLimit
public boolean canBypassPlayerLimit(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named canBypassPlayerLimitLnet/minecraft/server/PlayerManager;canBypassPlayerLimit(Lcom/mojang/authlib/GameProfile;)Zintermediary method_14609Lnet/minecraft/class_3324;method_14609(Lcom/mojang/authlib/GameProfile;)Zofficial dLaur;d(Lcom/mojang/authlib/GameProfile;)Z
-
onDataPacksReloaded
public void onDataPacksReloaded()- Mappings:
Namespace Name Mixin selector named onDataPacksReloadedLnet/minecraft/server/PlayerManager;onDataPacksReloaded()Vintermediary method_14572Lnet/minecraft/class_3324;method_14572()Vofficial uLaur;u()V
-
areCheatsAllowed
public boolean areCheatsAllowed()- Mappings:
Namespace Name Mixin selector named areCheatsAllowedLnet/minecraft/server/PlayerManager;areCheatsAllowed()Zintermediary method_14579Lnet/minecraft/class_3324;method_14579()Zofficial vLaur;v()Z
-