类 IntegratedServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.client.server.IntegratedServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ServerInfo
,ProfilerMeasured
,TaskScheduler<TickTask>
,ChunkIOErrorReporter
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明private LanServerPinger
private static final org.slf4j.Logger
private static final int
private final Minecraft
private boolean
private int
private GameType
private int
private UUID
从类继承的字段 net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, nextTickTimeNanos, playerDataStorage, proxy, services, storageSource, tickTimesNanos, VANILLA_BRAND, worldData
从类继承的字段 net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明IntegratedServer
(Thread p_235248_, Minecraft p_235249_, LevelStorageSource.LevelStorageAccess p_235250_, PackRepository p_235251_, WorldStem p_235252_, Services p_235253_, ChunkProgressListenerFactory p_235254_) -
方法概要
修饰符和类型方法说明fillServerSystemReport
(SystemReport p_174970_) boolean
int
int
int
getPort()
int
int
getScaledTrackingDistance
(int p_120056_) protected LocalSampleLogger
void
halt
(boolean p_120053_) boolean
boolean
boolean
boolean
boolean
isPaused()
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_120045_) boolean
void
onServerCrash
(CrashReport p_120051_) boolean
publishServer
(GameType p_120041_, boolean p_120042_, int p_120043_) void
reportChunkLoadFailure
(Throwable p_344018_, RegionStorageInfo p_345415_, ChunkPos p_335057_) void
reportChunkSaveFailure
(Throwable p_345295_, RegionStorageInfo p_345019_, ChunkPos p_328809_) boolean
saveEverything
(boolean p_329604_, boolean p_328766_, boolean p_334434_) void
setDefaultGameType
(GameType p_120039_) void
boolean
boolean
void
private void
void
tickServer
(BooleanSupplier p_120049_) private void
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, acceptsTransfers, addTickable, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, createTextFilterForPlayer, doRunTask, dumpServerProperties, endMetricsRecordingTick, enforceSecureProfile, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceDifficulty, forceTimeSynchronization, forgeGetWorldMap, fuelValues, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTimeNanos, getChatDecorator, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCurrentSmoothedTickTime, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getMaxChainedNeighborUpdates, getMaxPlayers, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScoreboard, getServerModName, getServerResourcePack, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getTickTimesNanos, getWorldData, getWorldPath, getWorldScreenshotFile, hasGui, hidesOnlinePlayers, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isHardcore, isLevelEnabled, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningMonsters, isStopped, isTimeProfilerRunning, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, logIPs, managedBlock, markWorldsDirty, onServerExit, onTickRateChanged, overworld, pauseWhileEmptySeconds, pollTask, potionBrewing, registries, registryAccess, reloadableRegistries, reloadResources, repliesToStatus, reportPacketHandlingException, runServer, saveAllChunks, scheduleExecutables, sendSystemMessage, serverLinks, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFatalException, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopTimeProfiler, subscribeToDebugSample, throwIfFatalException, tickChildren, tickConnection, tickRateManager, usesAuthentication, waitForTasks, waitUntilNextTick, wrapRunnable
从类继承的方法 net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isNonRecoverable, isSameThread, name, profiledMetrics, runAllTasks, schedule, submit, submit, submitAsync
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter
reportMisplacedChunk
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
scheduleWithResult
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MIN_SIM_DISTANCE
private static final int MIN_SIM_DISTANCE- 另请参阅:
-
minecraft
-
paused
private boolean paused -
publishedPort
private int publishedPort -
publishedGameType
-
lanPinger
-
uuid
-
previousSimulationDistance
private int previousSimulationDistance
-
-
构造器详细资料
-
IntegratedServer
public IntegratedServer(Thread p_235248_, Minecraft p_235249_, LevelStorageSource.LevelStorageAccess p_235250_, PackRepository p_235251_, WorldStem p_235252_, Services p_235253_, ChunkProgressListenerFactory p_235254_)
-
-
方法详细资料
-
initServer
public boolean initServer()- 指定者:
initServer
在类中MinecraftServer
-
isPaused
public boolean isPaused()- 覆盖:
isPaused
在类中MinecraftServer
-
tickServer
- 覆盖:
tickServer
在类中MinecraftServer
-
getTickTimeLogger
- 指定者:
getTickTimeLogger
在类中MinecraftServer
-
isTickTimeLoggingEnabled
public boolean isTickTimeLoggingEnabled()- 指定者:
isTickTimeLoggingEnabled
在类中MinecraftServer
-
tickPaused
private void tickPaused() -
shouldRconBroadcast
public boolean shouldRconBroadcast()- 指定者:
shouldRconBroadcast
在类中MinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- 指定者:
shouldInformAdmins
在接口中CommandSource
- 指定者:
shouldInformAdmins
在类中MinecraftServer
-
getServerDirectory
- 覆盖:
getServerDirectory
在类中MinecraftServer
-
isDedicatedServer
public boolean isDedicatedServer()- 指定者:
isDedicatedServer
在类中MinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond() -
isEpollEnabled
public boolean isEpollEnabled()- 指定者:
isEpollEnabled
在类中MinecraftServer
-
onServerCrash
- 覆盖:
onServerCrash
在类中MinecraftServer
-
fillServerSystemReport
- 指定者:
fillServerSystemReport
在类中MinecraftServer
-
getModdedStatus
- 覆盖:
getModdedStatus
在类中MinecraftServer
-
publishServer
- 覆盖:
publishServer
在类中MinecraftServer
-
stopServer
public void stopServer()- 覆盖:
stopServer
在类中MinecraftServer
-
halt
public void halt(boolean p_120053_) - 覆盖:
halt
在类中MinecraftServer
-
isPublished
public boolean isPublished()- 指定者:
isPublished
在类中MinecraftServer
-
getPort
public int getPort()- 覆盖:
getPort
在类中MinecraftServer
-
setDefaultGameType
- 覆盖:
setDefaultGameType
在类中MinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- 指定者:
isCommandBlockEnabled
在类中MinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel() -
getFunctionCompilationLevel
public int getFunctionCompilationLevel() -
setUUID
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_120045_) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_120056_) -
forceSynchronousWrites
public boolean forceSynchronousWrites() -
getForcedGameType
- 覆盖:
getForcedGameType
在类中MinecraftServer
-
saveEverything
public boolean saveEverything(boolean p_329604_, boolean p_328766_, boolean p_334434_) - 覆盖:
saveEverything
在类中MinecraftServer
-
warnOnLowDiskSpace
private void warnOnLowDiskSpace() -
reportChunkLoadFailure
public void reportChunkLoadFailure(Throwable p_344018_, RegionStorageInfo p_345415_, ChunkPos p_335057_) - 指定者:
reportChunkLoadFailure
在接口中ChunkIOErrorReporter
- 覆盖:
reportChunkLoadFailure
在类中MinecraftServer
-
reportChunkSaveFailure
public void reportChunkSaveFailure(Throwable p_345295_, RegionStorageInfo p_345019_, ChunkPos p_328809_) - 指定者:
reportChunkSaveFailure
在接口中ChunkIOErrorReporter
- 覆盖:
reportChunkSaveFailure
在类中MinecraftServer
-