Class MinecraftServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
- All Implemented Interfaces:
AutoCloseable, Executor, CommandSource, ServerInfo, ProfilerMeasured, TaskScheduler<TickTask>, ChunkIOErrorReporter
- Direct Known Subclasses:
DedicatedServer, GameTestServer, IntegratedServer
public abstract class MinecraftServer
extends ReentrantBlockableEventLoop<TickTask>
implements CommandSource, ServerInfo, ChunkIOErrorReporter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate longstatic final NameAndIdprivate static final intprivate static final floatprivate Stringprivate final ServerClockManagerprivate @Nullable CommandStorageprivate final ServerConnectionListenerprivate final CustomBossEventsprivate @Nullable MinecraftServer.TimeProfilerprivate booleanprivate final ServerDebugSubscribersprivate longstatic final LevelSettingsprivate LevelData.RespawnDataprivate intprivate booleanprivate final Executorprivate final com.mojang.datafixers.DataFixerprivate FuelValuesprivate final ServerFunctionManagerprivate final GameRulesprivate static final Gsonprivate longprivate booleanprivate booleanprivate booleanprivate @Nullable KeyPairprivate longprivate longprivate longprivate final LevelLoadListenerprivate final Map<ResourceKey<Level>, ServerLevel> private Stringprivate static final org.slf4j.Loggerprivate static final intprivate static final intprivate booleanprivate MetricsRecorderprivate static final intprivate @Nullable Stringprotected longprivate final NotificationManagerprivate booleanprivate Consumer<ProfileResults> private static final longprivate static final intprivate static final intprivate static final longprivate final PacketProcessorprivate final PackRepositoryprivate Map<ResourceKey<Level>, long[]> protected final PlayerDataStorageprivate intprivate PlayerListprivate intprivate final PotionBrewingprivate static final longprivate booleanprotected final Proxyprivate final RandomSourceprivate final RandomSequencesprivate final LayeredRegistryAccess<RegistryLayer> private booleanprivate final SavedDataStorageprivate final TimerQueue<MinecraftServer> private final ServerScoreboardprivate static final intprivate final ServerActivityMonitorprivate @Nullable Stringprivate final Threadprotected final Servicesprivate @Nullable com.mojang.authlib.GameProfileprivate floatstatic final intprivate @Nullable ServerStatusprivate static final longprivate @Nullable ServerStatus.Faviconprivate booleanprivate @Nullable Stopwatchesprotected final LevelStorageSource.LevelStorageAccessprivate final StructureTemplateManagerprivate final SuppressedExceptionCollectorprivate longprivate static final intprivate intprivate final com.mojang.jtracy.DiscontinuousFrameprivate final ServerTickRateManagerprivate intprivate final long[]private booleanstatic final Stringprivate booleanprivate final WeatherDataprivate booleanprivate ServerLevel[]private intprivate intprotected final WorldDataprivate final WorldGenSettingsFields inherited from class BlockableEventLoop
BLOCK_TIME_NANOSFields inherited from interface CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftServer(Thread serverThread, LevelStorageSource.LevelStorageAccess storageSource, PackRepository packRepository, WorldStem worldStem, Optional<GameRules> gameRules, Proxy proxy, com.mojang.datafixers.DataFixer fixerUpper, Services services, LevelLoadListener levelLoadListener, boolean propagatesCrashes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanvoidaddTickable(Runnable tickable) booleanprivate voidautoSave()private ServerStatus.Playersprivate ServerStatusvoidvoidclose()private intstatic WorldDataConfigurationconfigurePackRepository(PackRepository packRepository, WorldDataConfiguration initialDataConfig, boolean initMode, boolean safeMode) private static WorldDataConfigurationconfigureRepositoryWithSelection(PackRepository packRepository, Collection<String> selected, FeatureFlagSet forcedFeatures, boolean disableInactive) private static CrashReportcreateChunkLoadStatusView(int radius) createGameModeForPlayer(ServerPlayer player) protected voidprivate ProfilerFillerprotected voidprivate voiddumpClasspath(Path path) private voiddumpGameRules(Path path) private voiddumpMiscStats(Path path) private voiddumpNativeModules(Path path) voiddumpServerProperties(Path path) private voiddumpThreads(Path path) private static voidenableForcedFeaturePacks(PackRepository packRepository, FeatureFlagSet forcedFeatures) protected voidintenforceGameTypeForPlayers(@Nullable GameType gameType) booleanvoidexecuteIfPossible(Runnable command) abstract SystemReportfillServerSystemReport(SystemReport systemReport) fillSystemReport(SystemReport systemReport) private voidvoidprotected voidvoidbooleanDeprecated.intlongintfloatcom.mojang.datafixers.DataFixer@Nullable GameTypeabstract PermissionSetDeprecated.@Nullable ServerLevelgetLevel(ResourceKey<Level> dimension) Gets the worldServer by the given dimension.intgetMotd()longintString[]intgetPort()booleangetProfilePermissions(NameAndId nameAndId) getProxy()abstract intintgetScaledTrackingDistance(int baseRange) private static DataPackConfiggetSelectedPacks(PackRepository packRepository, boolean disableInactive) @Nullable com.mojang.authlib.GameProfile@Nullable ServerStatusint@Nullable long[]getTickTime(ResourceKey<Level> dim) protected abstract SampleLoggerlong[]private ServerLevel[]getWorldPath(LevelResource resource) voidhalt(boolean wait) Sets the serverRunning variable to false, in order to get the server to shut down.voidhandleCustomClickAction(Identifier id, Optional<Tag> payload) private booleanhaveTime()booleanprotected voidprotected abstract booleanvoidbooleanbooleanabstract booleanbooleanisDemo()booleanbooleanbooleanisPaused()abstract booleanbooleanisReady()booleanbooleanbooleanbooleanbooleanabstract booleanisSingleplayerOwner(NameAndId nameAndId) booleanabstract booleanbooleanbooleanisUnderSpawnProtection(ServerLevel level, BlockPos pos, Player player) booleanvoidprotected voidprivate Optional<ServerStatus.Favicon> voidlogChatMessage(Component message, ChatType.Bound chatType, @Nullable String tag) private voidbooleanlogIPs()private voidlogTickMethodTime(long startTime) voidDeprecated.<T> voidonGameRuleChanged(GameRule<T> rule, T value) protected voidonServerCrash(CrashReport report) Called on exit from the main run() loop.protected voidvoidabstract LevelBasedPermissionSetfinal ServerLevelprotected intintprotected booleanpollTask()private booleanprivate voidprotected voidprocessPacketsAndTick(boolean sprinting) booleanpublishServer(@Nullable GameType gameMode, boolean allowCommands, int port) reloadResources(Collection<String> packsToEnable) Replaces currently selected list of datapacks, reloads them, and sends new data to players.booleanvoidreportChunkLoadFailure(Throwable throwable, RegionStorageInfo storageInfo, ChunkPos pos) voidreportChunkSaveFailure(Throwable throwable, RegionStorageInfo storageInfo, ChunkPos pos) voidreportPacketHandlingException(Throwable throwable, PacketType<?> packetType) private voidresetStatusCache(ServerStatus status) protected voidbooleansaveAllChunks(boolean silent, boolean flush, boolean force) private voidsaveDebugReport(Path output) booleansaveEverything(boolean silent, boolean flush, boolean force) booleanprotected GlobalPosprivate voidsendDifficultyUpdate(ServerPlayer player) voidvoidsendSystemMessage(Component message) services()booleansetAutoSave(boolean enable) voidsetDefaultGameType(GameType gameType) Sets the game type for all worlds.voidsetDemo(boolean demo) Sets whether this is a demo or not.voidsetDifficulty(Difficulty difficulty, boolean ignoreLock) voidsetDifficultyLocked(boolean locked) voidsetEnforceWhitelist(boolean enforceWhitelist) protected voidprivate static voidsetInitialSpawn(ServerLevel level, ServerLevelData levelData, boolean spawnBonusChest, boolean isDebug, LevelLoadListener levelLoadListener) voidsetLocalIp(String ip) voidvoidsetPlayerIdleTimeout(int playerIdleTimeout) voidsetPlayerList(PlayerList players) voidsetPort(int port) voidsetPreventProxyConnections(boolean preventProxyConnections) voidsetRespawnData(LevelData.RespawnData respawnData) voidsetSingleplayerProfile(@Nullable com.mojang.authlib.GameProfile singleplayerProfile) private voidsetupDebugLevel(WorldData worldData) voidsetUsesAuthentication(boolean onlineMode) voidsetUsingWhitelist(boolean usingWhitelist) voidsetWeatherParameters(int clearTime, int rainTime, boolean raining, boolean thundering) abstract booleanabstract booleanprotected booleanstatic <S extends MinecraftServer>
Sprivate voidvoidstartRecordingMetrics(Consumer<ProfileResults> onStopped, Consumer<Path> onFinished) voidvoidprotected voidprivate voidstoreChunkIoError(CrashReport report, ChunkPos pos, RegionStorageInfo storageInfo) protected voidtickChildren(BooleanSupplier haveTime) protected voidprotected voidtickServer(BooleanSupplier haveTime) Main function called by run() every loop.protected voidvoidabstract booleanbooleanprotected voidprotected voidprotected voidwrapRunnable(Runnable runnable) Methods inherited from class ReentrantBlockableEventLoop
runningTaskMethods inherited from class BlockableEventLoop
delayCrash, dropAllTasks, execute, executeBlocking, getPendingTasksCount, hasDelayedCrash, isNonRecoverable, isSameThread, managedBlock, name, profiledMetrics, relayDelayCrash, runAllTasks, schedule, shouldRunAllTasks, submit, submit, submitAsyncMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChunkIOErrorReporter
reportMisplacedChunkMethods inherited from interface CommandSource
alwaysAcceptsMethods inherited from interface ServerInfo
getMaxPlayersMethods inherited from interface TaskScheduler
scheduleWithResult
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VANILLA_BRAND
- See Also:
-
AVERAGE_TICK_TIME_SMOOTHING
private static final float AVERAGE_TICK_TIME_SMOOTHING- See Also:
-
TICK_STATS_SPAN
private static final int TICK_STATS_SPAN- See Also:
-
OVERLOADED_THRESHOLD_NANOS
private static final long OVERLOADED_THRESHOLD_NANOS -
OVERLOADED_TICKS_THRESHOLD
private static final int OVERLOADED_TICKS_THRESHOLD- See Also:
-
OVERLOADED_WARNING_INTERVAL_NANOS
private static final long OVERLOADED_WARNING_INTERVAL_NANOS -
OVERLOADED_TICKS_WARNING_INTERVAL
private static final int OVERLOADED_TICKS_WARNING_INTERVAL- See Also:
-
STATUS_EXPIRE_TIME_NANOS
private static final long STATUS_EXPIRE_TIME_NANOS -
PREPARE_LEVELS_DEFAULT_DELAY_NANOS
private static final long PREPARE_LEVELS_DEFAULT_DELAY_NANOS -
MAX_STATUS_PLAYER_SAMPLE
private static final int MAX_STATUS_PLAYER_SAMPLE- See Also:
-
SPAWN_POSITION_SEARCH_RADIUS
public static final int SPAWN_POSITION_SEARCH_RADIUS- See Also:
-
SERVER_ACTIVITY_MONITOR_SECONDS_BETWEEN_NOTIFICATIONS
private static final int SERVER_ACTIVITY_MONITOR_SECONDS_BETWEEN_NOTIFICATIONS- See Also:
-
LEGACY_WORLD_NAMES_FOR_REALMS_LOG
-
AUTOSAVE_INTERVAL
private static final int AUTOSAVE_INTERVAL- See Also:
-
MIMINUM_AUTOSAVE_TICKS
private static final int MIMINUM_AUTOSAVE_TICKS- See Also:
-
MAX_TICK_LATENCY
private static final int MAX_TICK_LATENCY- See Also:
-
ABSOLUTE_MAX_WORLD_SIZE
public static final int ABSOLUTE_MAX_WORLD_SIZE- See Also:
-
DEMO_SETTINGS
-
DEFAULT_GAME_RULES
-
ANONYMOUS_PLAYER_PROFILE
-
storageSource
-
playerDataStorage
-
savedDataStorage
-
tickables
-
gameRules
-
metricsRecorder
-
onMetricsRecordingStopped
-
onMetricsRecordingFinished
-
willStartRecordingMetrics
private boolean willStartRecordingMetrics -
debugCommandProfiler
-
debugCommandProfilerDelayStart
private boolean debugCommandProfilerDelayStart -
connection
-
levelLoadListener
-
status
-
statusIcon
-
random
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
localIp
-
port
private int port -
registries
-
levels
-
playerList
-
running
private volatile boolean running -
stopped
private boolean stopped -
tickCount
private int tickCount -
ticksUntilAutosave
private int ticksUntilAutosave -
proxy
-
onlineMode
private boolean onlineMode -
preventProxyConnections
private boolean preventProxyConnections -
motd
-
playerIdleTimeout
private int playerIdleTimeout -
tickTimesNanos
private final long[] tickTimesNanos -
aggregatedTickTimesNanos
private long aggregatedTickTimesNanos -
keyPair
-
singleplayerProfile
private @Nullable com.mojang.authlib.GameProfile singleplayerProfile -
isDemo
private boolean isDemo -
isReady
private volatile boolean isReady -
lastOverloadWarningNanos
private long lastOverloadWarningNanos -
services
-
notificationManager
-
serverActivityMonitor
-
lastServerStatus
private long lastServerStatus -
serverThread
-
lastTickNanos
private long lastTickNanos -
taskExecutionStartNanos
private long taskExecutionStartNanos -
idleTimeNanos
private long idleTimeNanos -
nextTickTimeNanos
protected long nextTickTimeNanos -
waitingForNextTick
private boolean waitingForNextTick -
delayedTasksMaxNextTickTimeNanos
private long delayedTasksMaxNextTickTimeNanos -
mayHaveDelayedTasks
private boolean mayHaveDelayedTasks -
packRepository
-
worldGenSettings
-
scoreboard
-
stopwatches
-
commandStorage
-
customBossEvents
-
randomSequences
-
weatherData
-
functionManager
-
enforceWhitelist
private boolean enforceWhitelist -
usingWhitelist
private boolean usingWhitelist -
smoothedTickTimeMillis
private float smoothedTickTimeMillis -
executor
-
serverId
-
resources
-
structureTemplateManager
-
tickRateManager
-
debugSubscribers
-
worldData
-
effectiveRespawnData
-
potionBrewing
-
fuelValues
-
emptyTicks
private int emptyTicks -
isSaving
private volatile boolean isSaving -
suppressedExceptions
-
tickFrame
private final com.mojang.jtracy.DiscontinuousFrame tickFrame -
packetProcessor
-
scheduledEvents
-
clockManager
-
GSON
-
cachedServerStatus
-
perWorldTickTimes
-
worldArrayMarker
private int worldArrayMarker -
worldArrayLast
private int worldArrayLast -
worldArray
-
-
Constructor Details
-
MinecraftServer
public MinecraftServer(Thread serverThread, LevelStorageSource.LevelStorageAccess storageSource, PackRepository packRepository, WorldStem worldStem, Optional<GameRules> gameRules, Proxy proxy, com.mojang.datafixers.DataFixer fixerUpper, Services services, LevelLoadListener levelLoadListener, boolean propagatesCrashes)
-
-
Method Details
-
spin
-
initServer
- Throws:
IOException
-
createChunkLoadStatusView
-
loadLevel
protected void loadLevel() -
forceDifficulty
protected void forceDifficulty() -
createLevels
protected void createLevels() -
setInitialSpawn
private static void setInitialSpawn(ServerLevel level, ServerLevelData levelData, boolean spawnBonusChest, boolean isDebug, LevelLoadListener levelLoadListener) -
setupDebugLevel
-
prepareLevels
private void prepareLevels() -
selectLevelLoadFocusPos
-
getDefaultGameType
-
isHardcore
public boolean isHardcore() -
operatorUserPermissions
-
getFunctionCompilationPermissions
-
shouldRconBroadcast
public abstract boolean shouldRconBroadcast() -
saveAllChunks
public boolean saveAllChunks(boolean silent, boolean flush, boolean force) -
saveEverything
public boolean saveEverything(boolean silent, boolean flush, boolean force) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTaskScheduler<TickTask>
-
stopServer
protected void stopServer() -
getLocalIp
-
setLocalIp
-
isRunning
public boolean isRunning() -
halt
public void halt(boolean wait) Sets the serverRunning variable to false, in order to get the server to shut down. -
runServer
protected void runServer() -
logFullTickTime
private void logFullTickTime() -
startMeasuringTaskExecutionTime
private void startMeasuringTaskExecutionTime() -
finishMeasuringTaskExecutionTime
private void finishMeasuringTaskExecutionTime() -
constructOrExtractCrashReport
-
haveTime
private boolean haveTime() -
notificationManager
-
waitUntilNextTick
protected void waitUntilNextTick() -
waitForTasks
protected void waitForTasks()- Overrides:
waitForTasksin classBlockableEventLoop<TickTask>
-
wrapRunnable
- Specified by:
wrapRunnablein interfaceTaskScheduler<TickTask>
-
shouldRun
- Specified by:
shouldRunin classBlockableEventLoop<TickTask>
-
pollTask
protected boolean pollTask()- Overrides:
pollTaskin classBlockableEventLoop<TickTask>
-
pollTaskInternal
private boolean pollTaskInternal() -
doRunTask
- Overrides:
doRunTaskin classReentrantBlockableEventLoop<TickTask>
-
loadStatusIcon
-
getWorldScreenshotFile
-
getServerDirectory
-
getServerActivityMonitor
-
onServerCrash
Called on exit from the main run() loop. -
onServerExit
protected void onServerExit() -
isPaused
public boolean isPaused() -
tickServer
Main function called by run() every loop. -
processPacketsAndTick
protected void processPacketsAndTick(boolean sprinting) -
autoSave
private void autoSave() -
logTickMethodTime
private void logTickMethodTime(long startTime) -
resetStatusCache
-
getStatusJson
-
computeNextAutosaveInterval
private int computeNextAutosaveInterval() -
onTickRateChanged
public void onTickRateChanged() -
getTickTimeLogger
-
isTickTimeLoggingEnabled
public abstract boolean isTickTimeLoggingEnabled() -
buildServerStatus
-
buildPlayerStatus
-
tickChildren
-
updateEffectiveRespawnData
protected void updateEffectiveRespawnData() -
tickConnection
protected void tickConnection() -
forceGameTimeSynchronization
public void forceGameTimeSynchronization() -
addTickable
-
setId
-
isShutdown
public boolean isShutdown() -
getFile
-
overworld
-
getLevel
Gets the worldServer by the given dimension. -
levelKeys
-
getAllLevels
-
getServerVersion
- Specified by:
getServerVersionin interfaceServerInfo
-
getPlayerCount
public int getPlayerCount()- Specified by:
getPlayerCountin interfaceServerInfo
-
getPlayerNames
-
getServerModName
-
clockManager
-
fillSystemReport
-
fillServerSystemReport
-
getModdedStatus
-
sendSystemMessage
- Specified by:
sendSystemMessagein interfaceCommandSource
-
getKeyPair
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getSingleplayerProfile
public @Nullable com.mojang.authlib.GameProfile getSingleplayerProfile() -
setSingleplayerProfile
public void setSingleplayerProfile(@Nullable com.mojang.authlib.GameProfile singleplayerProfile) -
isSingleplayer
public boolean isSingleplayer() -
initializeKeyPair
protected void initializeKeyPair() -
setDifficulty
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int baseRange) -
updateMobSpawningFlags
public void updateMobSpawningFlags() -
setDifficultyLocked
public void setDifficultyLocked(boolean locked) -
sendDifficultyUpdate
-
isDemo
public boolean isDemo() -
setDemo
public void setDemo(boolean demo) Sets whether this is a demo or not. -
getCodeOfConducts
-
getServerResourcePack
-
isResourcePackRequired
public boolean isResourcePackRequired() -
isDedicatedServer
public abstract boolean isDedicatedServer() -
getRateLimitPacketsPerSecond
public abstract int getRateLimitPacketsPerSecond() -
usesAuthentication
public boolean usesAuthentication() -
setUsesAuthentication
public void setUsesAuthentication(boolean onlineMode) -
getPreventProxyConnections
public boolean getPreventProxyConnections() -
setPreventProxyConnections
public void setPreventProxyConnections(boolean preventProxyConnections) -
useNativeTransport
public abstract boolean useNativeTransport() -
allowFlight
public boolean allowFlight() -
getMotd
- Specified by:
getMotdin interfaceServerInfo
-
setMotd
-
isStopped
public boolean isStopped() -
getPlayerList
-
setPlayerList
-
isPublished
public abstract boolean isPublished() -
setDefaultGameType
Sets the game type for all worlds. -
enforceGameTypeForPlayers
-
getConnection
-
isReady
public boolean isReady() -
publishServer
-
getTickCount
public int getTickCount() -
isUnderSpawnProtection
-
repliesToStatus
public boolean repliesToStatus() -
hidesOnlinePlayers
public boolean hidesOnlinePlayers() -
getProxy
-
playerIdleTimeout
public int playerIdleTimeout() -
setPlayerIdleTimeout
public void setPlayerIdleTimeout(int playerIdleTimeout) -
services
-
getStatus
-
invalidateStatus
public void invalidateStatus() -
getAbsoluteMaxWorldSize
public int getAbsoluteMaxWorldSize() -
scheduleExecutables
public boolean scheduleExecutables()- Overrides:
scheduleExecutablesin classReentrantBlockableEventLoop<TickTask>
-
executeIfPossible
- Overrides:
executeIfPossiblein classBlockableEventLoop<TickTask>
-
getRunningThread
- Specified by:
getRunningThreadin classBlockableEventLoop<TickTask>
-
getCompressionThreshold
public int getCompressionThreshold() -
enforceSecureProfile
public boolean enforceSecureProfile() -
getNextTickTime
public long getNextTickTime() -
getFixerUpper
public com.mojang.datafixers.DataFixer getFixerUpper() -
getAdvancements
-
getFunctions
-
reloadResources
Replaces currently selected list of datapacks, reloads them, and sends new data to players. -
configurePackRepository
public static WorldDataConfiguration configurePackRepository(PackRepository packRepository, WorldDataConfiguration initialDataConfig, boolean initMode, boolean safeMode) -
configureRepositoryWithSelection
private static WorldDataConfiguration configureRepositoryWithSelection(PackRepository packRepository, Collection<String> selected, FeatureFlagSet forcedFeatures, boolean disableInactive) -
enableForcedFeaturePacks
private static void enableForcedFeaturePacks(PackRepository packRepository, FeatureFlagSet forcedFeatures) -
getSelectedPacks
private static DataPackConfig getSelectedPacks(PackRepository packRepository, boolean disableInactive) -
kickUnlistedPlayers
public void kickUnlistedPlayers() -
getPackRepository
-
getCommands
-
createCommandSourceStack
-
findRespawnDimension
-
setRespawnData
-
getRespawnData
-
acceptsSuccess
public boolean acceptsSuccess()- Specified by:
acceptsSuccessin interfaceCommandSource
-
acceptsFailure
public boolean acceptsFailure()- Specified by:
acceptsFailurein interfaceCommandSource
-
shouldInformAdmins
public abstract boolean shouldInformAdmins()- Specified by:
shouldInformAdminsin interfaceCommandSource
-
getWorldGenSettings
-
getRecipeManager
-
getScoreboard
-
getCommandStorage
-
getStopwatches
-
getCustomBossEvents
-
getRandomSequence
-
getRandomSequences
-
setWeatherParameters
public void setWeatherParameters(int clearTime, int rainTime, boolean raining, boolean thundering) -
getWeatherData
-
isEnforceWhitelist
public boolean isEnforceWhitelist() -
setEnforceWhitelist
public void setEnforceWhitelist(boolean enforceWhitelist) -
isUsingWhitelist
public boolean isUsingWhitelist() -
setUsingWhitelist
public void setUsingWhitelist(boolean usingWhitelist) -
getCurrentSmoothedTickTime
public float getCurrentSmoothedTickTime() -
tickRateManager
-
getAverageTickTimeNanos
public long getAverageTickTimeNanos() -
getTickTimesNanos
public long[] getTickTimesNanos() -
getProfilePermissions
-
isSingleplayerOwner
-
getTickTime
-
forgeGetWorldMap
Deprecated. -
markWorldsDirty
Deprecated. -
getWorldArray
-
dumpServerProperties
- Throws:
IOException
-
saveDebugReport
-
dumpMiscStats
- Throws:
IOException
-
dumpGameRules
- Throws:
IOException
-
dumpClasspath
- Throws:
IOException
-
dumpThreads
- Throws:
IOException
-
dumpNativeModules
- Throws:
IOException
-
createProfiler
-
endMetricsRecordingTick
protected void endMetricsRecordingTick() -
isRecordingMetrics
public boolean isRecordingMetrics() -
startRecordingMetrics
-
stopRecordingMetrics
public void stopRecordingMetrics() -
finishRecordingMetrics
public void finishRecordingMetrics() -
cancelRecordingMetrics
public void cancelRecordingMetrics() -
getWorldPath
-
forceSynchronousWrites
public boolean forceSynchronousWrites() -
getStructureManager
-
getWorldData
-
getServerResources
-
registryAccess
-
registries
-
reloadableRegistries
-
createTextFilterForPlayer
-
createGameModeForPlayer
-
getForcedGameType
-
getResourceManager
-
isCurrentlySaving
public boolean isCurrentlySaving() -
isTimeProfilerRunning
public boolean isTimeProfilerRunning() -
startTimeProfiler
public void startTimeProfiler() -
stopTimeProfiler
-
getMaxChainedNeighborUpdates
public int getMaxChainedNeighborUpdates() -
logChatMessage
-
getChatDecorator
-
logIPs
public boolean logIPs() -
handleCustomClickAction
-
getLevelLoadListener
-
setAutoSave
public boolean setAutoSave(boolean enable) -
isAutoSave
public boolean isAutoSave() -
onGameRuleChanged
-
getGlobalGameRules
Deprecated. -
getDataStorage
-
getScheduledEvents
-
getGameRules
-
acceptsTransfers
public boolean acceptsTransfers() -
storeChunkIoError
-
reportChunkLoadFailure
public void reportChunkLoadFailure(Throwable throwable, RegionStorageInfo storageInfo, ChunkPos pos) - Specified by:
reportChunkLoadFailurein interfaceChunkIOErrorReporter
-
reportChunkSaveFailure
public void reportChunkSaveFailure(Throwable throwable, RegionStorageInfo storageInfo, ChunkPos pos) - Specified by:
reportChunkSaveFailurein interfaceChunkIOErrorReporter
-
warnOnLowDiskSpace
protected void warnOnLowDiskSpace() -
sendLowDiskSpaceWarning
public void sendLowDiskSpaceWarning() -
reportPacketHandlingException
-
potionBrewing
-
fuelValues
-
serverLinks
-
pauseWhenEmptySeconds
protected int pauseWhenEmptySeconds() -
packetProcessor
-
debugSubscribers
-