Package com.petrolpark.core.simulation
Class SimulatedServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<net.minecraft.server.TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<net.minecraft.server.TickTask>
net.minecraft.server.MinecraftServer
com.petrolpark.core.simulation.SimulatedServer
- All Implemented Interfaces:
AutoCloseable,Executor,net.minecraft.commands.CommandSource,net.minecraft.server.ServerInfo,net.minecraft.util.profiling.metrics.ProfilerMeasured,net.minecraft.util.thread.ProcessorHandle<net.minecraft.server.TickTask>,net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter
@Experimental
public class SimulatedServer
extends net.minecraft.server.MinecraftServer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.server.MinecraftServer
net.minecraft.server.MinecraftServer.ReloadableResources, net.minecraft.server.MinecraftServer.ServerResourcePackInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final net.minecraft.util.debugchart.SampleLoggerprotected final AlwaysSprintingTickRateManagerFields inherited from class net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, nextTickTimeNanos, playerDataStorage, proxy, services, storageSource, VANILLA_BRAND, worldDataFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionSimulatedServer(Thread serverThread, net.minecraft.world.level.storage.LevelStorageSource.LevelStorageAccess storageAccess, net.minecraft.server.packs.repository.PackRepository packRepository, net.minecraft.server.WorldStem worldStem, boolean dedicated) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateLevels(net.minecraft.server.level.progress.ChunkProgressListener listener) net.minecraft.SystemReportfillServerSystemReport(net.minecraft.SystemReport report) intintintprotected net.minecraft.util.debugchart.SampleLoggerprotected booleanbooleanbooleanbooleanbooleanbooleanbooleanisSingleplayerOwner(com.mojang.authlib.GameProfile profile) booleanbooleanvoidonServerCrash(net.minecraft.CrashReport report) voidprotected voidbooleanbooleanvoidnet.minecraft.util.profiling.ProfileResultsnet.minecraft.server.ServerTickRateManagerMethods inherited from class net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, acceptsTransfers, addTickable, areNpcsEnabled, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createTextFilterForPlayer, doRunTask, dumpServerProperties, endMetricsRecordingTick, enforceSecureProfile, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceDifficulty, forceSynchronousWrites, forceTimeSynchronization, forgeGetWorldMap, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTimeNanos, getChatDecorator, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCurrentSmoothedTickTime, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getForcedGameType, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getMaxChainedNeighborUpdates, getMaxPlayers, getModdedStatus, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPort, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfiler, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScaledTrackingDistance, getScoreboard, getServerDirectory, getServerModName, getServerResourcePack, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getTickTimesNanos, getWorldData, getWorldPath, getWorldScreenshotFile, halt, hasGui, hidesOnlinePlayers, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isLevelEnabled, isPaused, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningAnimals, isSpawningMonsters, isStopped, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, logIPs, managedBlock, markWorldsDirty, onTickRateChanged, overworld, pollTask, potionBrewing, publishServer, registries, registryAccess, reloadableRegistries, reloadResources, repliesToStatus, reportChunkLoadFailure, reportChunkSaveFailure, saveAllChunks, saveEverything, scheduleExecutables, sendSystemMessage, serverLinks, setDefaultGameType, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFatalException, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, stopRecordingMetrics, stopServer, subscribeToDebugSample, throwIfFatalException, tickChildren, tickServer, usesAuthentication, waitForTasks, waitUntilNextTick, wrapRunnableMethods inherited from class net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTaskMethods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tellMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter
reportMisplacedChunkMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraft.util.thread.ProcessorHandle
ask, askEither
-
Field Details
-
dedicated
protected final boolean dedicated- See Also:
-
sampleLogger
protected final net.minecraft.util.debugchart.SampleLogger sampleLogger -
tickRateManager
-
-
Constructor Details
-
SimulatedServer
public SimulatedServer(Thread serverThread, net.minecraft.world.level.storage.LevelStorageSource.LevelStorageAccess storageAccess, net.minecraft.server.packs.repository.PackRepository packRepository, net.minecraft.server.WorldStem worldStem, boolean dedicated)
-
-
Method Details
-
initServer
- Specified by:
initServerin classnet.minecraft.server.MinecraftServer- Throws:
IOException
-
createLevels
protected void createLevels(@Nonnull net.minecraft.server.level.progress.ChunkProgressListener listener) - Overrides:
createLevelsin classnet.minecraft.server.MinecraftServer
-
runServer
protected void runServer()- Overrides:
runServerin classnet.minecraft.server.MinecraftServer
-
onServerExit
public void onServerExit()- Overrides:
onServerExitin classnet.minecraft.server.MinecraftServer
-
onServerCrash
public void onServerCrash(@Nonnull net.minecraft.CrashReport report) - Overrides:
onServerCrashin classnet.minecraft.server.MinecraftServer
-
tickRateManager
public net.minecraft.server.ServerTickRateManager tickRateManager()- Overrides:
tickRateManagerin classnet.minecraft.server.MinecraftServer
-
isHardcore
public boolean isHardcore()- Overrides:
isHardcorein classnet.minecraft.server.MinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel()- Specified by:
getOperatorUserPermissionLevelin classnet.minecraft.server.MinecraftServer
-
getFunctionCompilationLevel
public int getFunctionCompilationLevel()- Specified by:
getFunctionCompilationLevelin classnet.minecraft.server.MinecraftServer
-
shouldRconBroadcast
public boolean shouldRconBroadcast()- Specified by:
shouldRconBroadcastin classnet.minecraft.server.MinecraftServer
-
getTickTimeLogger
protected net.minecraft.util.debugchart.SampleLogger getTickTimeLogger()- Specified by:
getTickTimeLoggerin classnet.minecraft.server.MinecraftServer
-
isTickTimeLoggingEnabled
public boolean isTickTimeLoggingEnabled()- Specified by:
isTickTimeLoggingEnabledin classnet.minecraft.server.MinecraftServer
-
isTimeProfilerRunning
public boolean isTimeProfilerRunning()- Overrides:
isTimeProfilerRunningin classnet.minecraft.server.MinecraftServer
-
startTimeProfiler
public void startTimeProfiler()- Overrides:
startTimeProfilerin classnet.minecraft.server.MinecraftServer
-
stopTimeProfiler
public net.minecraft.util.profiling.ProfileResults stopTimeProfiler()- Overrides:
stopTimeProfilerin classnet.minecraft.server.MinecraftServer
-
fillServerSystemReport
public net.minecraft.SystemReport fillServerSystemReport(@Nonnull net.minecraft.SystemReport report) - Specified by:
fillServerSystemReportin classnet.minecraft.server.MinecraftServer
-
isDedicatedServer
public boolean isDedicatedServer()- Specified by:
isDedicatedServerin classnet.minecraft.server.MinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond()- Specified by:
getRateLimitPacketsPerSecondin classnet.minecraft.server.MinecraftServer
-
isEpollEnabled
public boolean isEpollEnabled()- Specified by:
isEpollEnabledin classnet.minecraft.server.MinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- Specified by:
isCommandBlockEnabledin classnet.minecraft.server.MinecraftServer
-
isPublished
public boolean isPublished()- Specified by:
isPublishedin classnet.minecraft.server.MinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdminsin interfacenet.minecraft.commands.CommandSource- Specified by:
shouldInformAdminsin classnet.minecraft.server.MinecraftServer
-
isSingleplayerOwner
public boolean isSingleplayerOwner(@Nonnull com.mojang.authlib.GameProfile profile) - Specified by:
isSingleplayerOwnerin classnet.minecraft.server.MinecraftServer
-