All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type |
Method and Description |
boolean |
acceptsStatusQuery() |
void |
addServerGuiTickable(Runnable tickable) |
void |
addSnooperInfo(Snooper snooper) |
int |
adjustTrackingDistance(int initialDistance) |
abstract boolean |
areCommandBlocksEnabled()
Specifies whether command blocks can execute commands on the server.
|
protected boolean |
canExecute(ServerTask serverTask) |
void |
close() |
static void |
convertLevel(LevelStorage.Session session) |
protected ServerTask |
createTask(Runnable runnable) |
protected void |
createWorlds(WorldGenerationProgressListener worldGenerationProgressListener) |
void |
dump(Path path) |
private void |
dumpClasspath(Path path) |
private void |
dumpExampleCrash(Path path) |
private void |
dumpGamerules(Path path) |
private void |
dumpStats(Path path) |
private void |
dumpThreads(Path path) |
void |
enableProfiler() |
private void |
endMonitor(TickDurationMonitor monitor) |
protected void |
executeTask(ServerTask serverTask) |
protected void |
exit() |
void |
forcePlayerSampleUpdate() |
ServerAdvancementLoader |
getAdvancementLoader() |
BossBarManager |
getBossBarManager() |
CommandFunctionManager |
getCommandFunctionManager() |
CommandManager |
getCommandManager()
Gets the server's command manager.
|
ServerCommandSource |
getCommandSource()
Creates a command source which represents this Minecraft server instance.
|
int |
getCurrentPlayerCount() |
DataCommandStorage |
getDataCommandStorage() |
com.mojang.datafixers.DataFixer |
getDataFixer() |
ResourcePackManager |
getDataPackManager() |
GameMode |
getDefaultGameMode() |
File |
getFile(String path) |
abstract int |
getFunctionPermissionLevel() |
com.mojang.authlib.GameProfileRepository |
getGameProfileRepo() |
GameRules |
getGameRules() |
File |
getIconFile() |
KeyPair |
getKeyPair() |
LootManager |
getLootManager() |
int |
getMaxPlayerCount() |
int |
getMaxWorldBorderRadius() |
MetricsData |
getMetricsData() |
abstract Optional<String> |
getModdedStatusMessage() |
int |
getNetworkCompressionThreshold() |
ServerNetworkIo |
getNetworkIo() |
abstract int |
getOpPermissionLevel() |
ServerWorld |
getOverworld() |
int |
getPermissionLevel(com.mojang.authlib.GameProfile profile) |
int |
getPlayerIdleTimeout() |
PlayerManager |
getPlayerManager() |
String[] |
getPlayerNames() |
LootConditionManager |
getPredicateManager() |
Profiler |
getProfiler() |
abstract int |
getRateLimit() |
RecipeManager |
getRecipeManager() |
DynamicRegistryManager |
getRegistryManager() |
String |
getResourcePackHash() |
String |
getResourcePackUrl() |
File |
getRunDirectory() |
Path |
getSavePath(WorldSavePath worldSavePath) |
SaveProperties |
getSaveProperties() |
ServerScoreboard |
getScoreboard() |
String |
getServerIp() |
ServerMetadata |
getServerMetadata() |
String |
getServerModName() |
String |
getServerMotd() |
int |
getServerPort() |
long |
getServerStartTime() |
com.mojang.authlib.minecraft.MinecraftSessionService |
getSessionService() |
Snooper |
getSnooper() |
int |
getSpawnProtectionRadius() |
int |
getSpawnRadius(ServerWorld world) |
StructureManager |
getStructureManager() |
TagManager |
getTagManager() |
Thread |
getThread() |
int |
getTicks()
Gets the amount of ticks the server has been running for.
|
float |
getTickTime() |
UserCache |
getUserCache() |
String |
getUserName() |
String |
getVersion() |
ServerWorld |
getWorld(RegistryKey<World> key) |
int |
getWorldHeight() |
Set<RegistryKey<World>> |
getWorldRegistryKeys() |
Iterable<ServerWorld> |
getWorlds() |
boolean |
hasGui() |
boolean |
hasIconFile() |
private void |
initScoreboard(PersistentStateManager persistentStateManager) |
boolean |
isDebugRunning() |
abstract boolean |
isDedicated() |
boolean |
isDemo() |
boolean |
isEnforceWhitelist() |
boolean |
isFlightEnabled() |
boolean |
isHardcore() |
abstract boolean |
isHost(com.mojang.authlib.GameProfile profile) |
boolean |
isLoading() |
protected boolean |
isMonsterSpawningEnabled() |
boolean |
isNetherAllowed() |
boolean |
isOnlineMode() |
boolean |
isPvpEnabled() |
abstract boolean |
isRemote() |
boolean |
isRunning() |
boolean |
isSinglePlayer() |
boolean |
isSpawnProtected(ServerWorld world,
BlockPos pos,
PlayerEntity player) |
boolean |
isStopped() |
boolean |
isStopping() |
abstract boolean |
isUsingNativeTransport() |
void |
kickNonWhitelistedPlayers(ServerCommandSource source) |
static DataPackSettings |
loadDataPacks(ResourcePackManager resourcePackManager,
DataPackSettings dataPackSettings,
boolean safeMode) |
protected void |
loadWorld() |
protected void |
loadWorldResourcePack() |
protected void |
method_16208() |
private boolean |
method_20415() |
protected void |
method_27731() |
private static DataPackSettings |
method_29735(ResourcePackManager resourcePackManager) |
class_5513 |
method_31371(ServerPlayerEntity serverPlayerEntity) |
protected void |
method_31400() |
abstract boolean |
openToLan(GameMode gameMode,
boolean cheatsAllowed,
int port)
Opens a server for LAN connections.
|
CrashReport |
populateCrashReport(CrashReport report) |
private void |
prepareStartRegion(WorldGenerationProgressListener worldGenerationProgressListener) |
CompletableFuture<Void> |
reloadResources(Collection<String> datapacks)
Reloads this server's datapacks.
|
protected void |
runServer() |
boolean |
runTask() |
boolean |
save(boolean suppressLogs,
boolean bool,
boolean bool2) |
private void |
sendDifficulty(ServerPlayerEntity player) |
void |
sendSystemMessage(Text message,
UUID senderUuid) |
protected void |
setCrashReport(CrashReport report) |
void |
setDefaultGameMode(GameMode gameMode) |
void |
setDemo(boolean demo) |
void |
setDifficulty(Difficulty difficulty,
boolean forceUpdate) |
void |
setDifficultyLocked(boolean locked) |
void |
setEnforceWhitelist(boolean whitelistEnabled) |
private void |
setFavicon(ServerMetadata metadata) |
void |
setFlightEnabled(boolean flightEnabled) |
void |
setForceGameMode(boolean forceGameMode)
Sets whether a player's current game mode should be set to the server's current game mode when a player has connected.
|
void |
setMotd(String motd) |
void |
setOnlineMode(boolean onlineMode) |
void |
setPlayerIdleTimeout(int playerIdleTimeout) |
void |
setPlayerManager(PlayerManager playerManager) |
void |
setPreventProxyConnections(boolean preventProxyConnections) |
void |
setPvpEnabled(boolean pvpEnabled) |
void |
setResourcePack(String url,
String hash) |
protected void |
setServerId(String serverId) |
void |
setServerIp(String serverIp) |
void |
setServerName(String serverName) |
void |
setServerPort(int serverPort) |
private void |
setToDebugWorldProperties(SaveProperties properties) |
protected abstract boolean |
setupServer() |
private static void |
setupSpawn(ServerWorld world,
ServerWorldProperties serverWorldProperties,
boolean bonusChest,
boolean debugWorld,
boolean bool) |
void |
setWorldHeight(int worldHeight) |
abstract boolean |
shouldBroadcastRconToOps() |
boolean |
shouldExecuteAsync() |
boolean |
shouldForceGameMode()
Checks whether a player's current game mode should be set to the server's current game mode when a player has connected.
|
private boolean |
shouldKeepTicking() |
boolean |
shouldPreventProxyConnections() |
boolean |
shouldReceiveFeedback() |
boolean |
shouldSpawnAnimals() |
boolean |
shouldSpawnNpcs() |
boolean |
shouldTrackOutput() |
protected void |
shutdown() |
private void |
startMonitor(TickDurationMonitor monitor) |
static <S extends MinecraftServer> S |
startServer(Function<Thread,S> serverFactory) |
void |
stop(boolean bool) |
ProfileResult |
stopDebug() |
boolean |
syncChunkWrites() |
protected void |
tick(BooleanSupplier shouldKeepTicking) |
protected void |
tickWorlds(BooleanSupplier shouldKeepTicking) |
private void |
updateMobSpawnOptions() |