All Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
addToOperators(com.mojang.authlib.GameProfile profile) |
boolean |
areCheatsAllowed() |
void |
broadcastChatMessage(Text message,
MessageType type,
UUID senderUuid) |
boolean |
canBypassPlayerLimit(com.mojang.authlib.GameProfile profile) |
Text |
checkCanJoin(SocketAddress address,
com.mojang.authlib.GameProfile profile) |
ServerPlayerEntity |
createPlayer(com.mojang.authlib.GameProfile profile) |
ServerStatHandler |
createStatHandler(PlayerEntity player) |
void |
disconnectAllPlayers() |
PlayerAdvancementTracker |
getAdvancementTracker(ServerPlayerEntity player) |
int |
getCurrentPlayerCount() |
BannedIpList |
getIpBanList() |
int |
getMaxPlayerCount() |
OperatorList |
getOpList() |
String[] |
getOpNames() |
ServerPlayerEntity |
getPlayer(String name) |
ServerPlayerEntity |
getPlayer(UUID uuid) |
List<ServerPlayerEntity> |
getPlayerList()
Gets a list of all players on a Minecraft server.
|
String[] |
getPlayerNames() |
List<ServerPlayerEntity> |
getPlayersByIp(String ip) |
MinecraftServer |
getServer() |
BannedPlayerList |
getUserBanList() |
CompoundTag |
getUserData()
Gets the user data of the player hosting the Minecraft server.
|
int |
getViewDistance() |
Whitelist |
getWhitelist() |
String[] |
getWhitelistedNames() |
boolean |
isOperator(com.mojang.authlib.GameProfile profile) |
boolean |
isWhitelisted(com.mojang.authlib.GameProfile profile) |
boolean |
isWhitelistEnabled() |
CompoundTag |
loadPlayerData(ServerPlayerEntity player) |
void |
onDataPacksReloaded() |
void |
onPlayerConnect(ClientConnection connection,
ServerPlayerEntity player) |
void |
reloadWhitelist() |
void |
remove(ServerPlayerEntity player) |
void |
removeFromOperators(com.mojang.authlib.GameProfile profile) |
ServerPlayerEntity |
respawnPlayer(ServerPlayerEntity player,
boolean alive) |
void |
saveAllPlayerData() |
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 |
sendToAll(Packet<?> packet) |
void |
sendToAround(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 |
setGameMode(GameMode gameMode) |
private void |
setGameMode(ServerPlayerEntity player,
ServerPlayerEntity oldPlayer,
ServerWorld world) |
void |
setMainWorld(ServerWorld world) |
void |
setViewDistance(int viewDistance) |
void |
setWhitelistEnabled(boolean whitelistEnabled) |
void |
updatePlayerLatency() |