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

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected final net.minecraft.util.debugchart.SampleLogger
     
     

    Fields inherited from class net.minecraft.server.MinecraftServer

    ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, nextTickTimeNanos, playerDataStorage, proxy, services, storageSource, VANILLA_BRAND, worldData

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    protected void
    createLevels(net.minecraft.server.level.progress.ChunkProgressListener listener)
     
    net.minecraft.SystemReport
    fillServerSystemReport(net.minecraft.SystemReport report)
     
    int
     
    int
     
    int
     
    protected net.minecraft.util.debugchart.SampleLogger
     
    protected boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    isSingleplayerOwner(com.mojang.authlib.GameProfile profile)
     
    boolean
     
    boolean
     
    void
    onServerCrash(net.minecraft.CrashReport report)
     
    void
     
    protected void
     
    boolean
     
    boolean
     
    void
     
    net.minecraft.util.profiling.ProfileResults
     
    net.minecraft.server.ServerTickRateManager
     

    Methods 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, wrapRunnable

    Methods inherited from class net.minecraft.util.thread.ReentrantBlockableEventLoop

    runningTask

    Methods inherited from class net.minecraft.util.thread.BlockableEventLoop

    dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter

    reportMisplacedChunk

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.minecraft.util.thread.ProcessorHandle

    ask, askEither
  • Field Details

    • dedicated

      protected final boolean dedicated
      See Also:
      • MinecraftServer.isDedicatedServer()
    • sampleLogger

      protected final net.minecraft.util.debugchart.SampleLogger sampleLogger
    • tickRateManager

      protected final AlwaysSprintingTickRateManager 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

      protected boolean initServer() throws IOException
      Specified by:
      initServer in class net.minecraft.server.MinecraftServer
      Throws:
      IOException
    • createLevels

      protected void createLevels(@Nonnull net.minecraft.server.level.progress.ChunkProgressListener listener)
      Overrides:
      createLevels in class net.minecraft.server.MinecraftServer
    • runServer

      protected void runServer()
      Overrides:
      runServer in class net.minecraft.server.MinecraftServer
    • onServerExit

      public void onServerExit()
      Overrides:
      onServerExit in class net.minecraft.server.MinecraftServer
    • onServerCrash

      public void onServerCrash(@Nonnull net.minecraft.CrashReport report)
      Overrides:
      onServerCrash in class net.minecraft.server.MinecraftServer
    • tickRateManager

      public net.minecraft.server.ServerTickRateManager tickRateManager()
      Overrides:
      tickRateManager in class net.minecraft.server.MinecraftServer
    • isHardcore

      public boolean isHardcore()
      Overrides:
      isHardcore in class net.minecraft.server.MinecraftServer
    • getOperatorUserPermissionLevel

      public int getOperatorUserPermissionLevel()
      Specified by:
      getOperatorUserPermissionLevel in class net.minecraft.server.MinecraftServer
    • getFunctionCompilationLevel

      public int getFunctionCompilationLevel()
      Specified by:
      getFunctionCompilationLevel in class net.minecraft.server.MinecraftServer
    • shouldRconBroadcast

      public boolean shouldRconBroadcast()
      Specified by:
      shouldRconBroadcast in class net.minecraft.server.MinecraftServer
    • getTickTimeLogger

      protected net.minecraft.util.debugchart.SampleLogger getTickTimeLogger()
      Specified by:
      getTickTimeLogger in class net.minecraft.server.MinecraftServer
    • isTickTimeLoggingEnabled

      public boolean isTickTimeLoggingEnabled()
      Specified by:
      isTickTimeLoggingEnabled in class net.minecraft.server.MinecraftServer
    • isTimeProfilerRunning

      public boolean isTimeProfilerRunning()
      Overrides:
      isTimeProfilerRunning in class net.minecraft.server.MinecraftServer
    • startTimeProfiler

      public void startTimeProfiler()
      Overrides:
      startTimeProfiler in class net.minecraft.server.MinecraftServer
    • stopTimeProfiler

      public net.minecraft.util.profiling.ProfileResults stopTimeProfiler()
      Overrides:
      stopTimeProfiler in class net.minecraft.server.MinecraftServer
    • fillServerSystemReport

      public net.minecraft.SystemReport fillServerSystemReport(@Nonnull net.minecraft.SystemReport report)
      Specified by:
      fillServerSystemReport in class net.minecraft.server.MinecraftServer
    • isDedicatedServer

      public boolean isDedicatedServer()
      Specified by:
      isDedicatedServer in class net.minecraft.server.MinecraftServer
    • getRateLimitPacketsPerSecond

      public int getRateLimitPacketsPerSecond()
      Specified by:
      getRateLimitPacketsPerSecond in class net.minecraft.server.MinecraftServer
    • isEpollEnabled

      public boolean isEpollEnabled()
      Specified by:
      isEpollEnabled in class net.minecraft.server.MinecraftServer
    • isCommandBlockEnabled

      public boolean isCommandBlockEnabled()
      Specified by:
      isCommandBlockEnabled in class net.minecraft.server.MinecraftServer
    • isPublished

      public boolean isPublished()
      Specified by:
      isPublished in class net.minecraft.server.MinecraftServer
    • shouldInformAdmins

      public boolean shouldInformAdmins()
      Specified by:
      shouldInformAdmins in interface net.minecraft.commands.CommandSource
      Specified by:
      shouldInformAdmins in class net.minecraft.server.MinecraftServer
    • isSingleplayerOwner

      public boolean isSingleplayerOwner(@Nonnull com.mojang.authlib.GameProfile profile)
      Specified by:
      isSingleplayerOwner in class net.minecraft.server.MinecraftServer