类 DedicatedServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.server.dedicated.DedicatedServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ServerInfo
,ServerInterface
,ProfilerMeasured
,TaskScheduler<TickTask>
,ChunkIOErrorReporter
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明final List
<ConsoleInput> private static final int
private static final int
private DebugSampleSubscriptionTracker
private LanServerPinger
private MinecraftServerGui
(专用程序包) static final org.slf4j.Logger
private QueryThreadGs4
private final RconConsoleSource
private RconThread
private final ServerLinks
private final ServerTextFilter
private final DedicatedServerSettings
private RemoteSampleLogger
从类继承的字段 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
-
构造器概要
构造器构造器说明DedicatedServer
(Thread p_214789_, LevelStorageSource.LevelStorageAccess p_214790_, PackRepository p_214791_, WorldStem p_214792_, DedicatedServerSettings p_214793_, com.mojang.datafixers.DataFixer p_214794_, Services p_214795_, ChunkProgressListenerFactory p_214796_) -
方法概要
修饰符和类型方法说明boolean
protected boolean
private static ServerLinks
createServerLinks
(DedicatedServerSettings p_343848_) createTextFilterForPlayer
(ServerPlayer p_139634_) void
dumpServerProperties
(Path p_142872_) void
boolean
fillServerSystemReport
(SystemReport p_142870_) void
boolean
int
int
int
int
long
int
int
int
getScaledTrackingDistance
(int p_139659_) int
int
void
handleConsoleInput
(String p_139646_, CommandSourceStack p_139647_) void
boolean
hasGui()
boolean
boolean
boolean
boolean
boolean
boolean
isLevelEnabled
(Level p_344961_) boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_139642_) boolean
boolean
boolean
isUnderSpawnProtection
(ServerLevel p_139630_, BlockPos p_139631_, Player p_139632_) boolean
logIPs()
void
parseBugReportLink
(DedicatedServerProperties p_342981_) int
boolean
runCommand
(String p_139644_) void
setPlayerIdleTimeout
(int p_139676_) boolean
boolean
void
showGui()
void
void
storeUsingWhiteList
(boolean p_139689_) void
subscribeToDebugSample
(ServerPlayer p_328957_, RemoteDebugSampleType p_333036_) void
private void
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, doRunTask, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceTimeSynchronization, forgeGetWorldMap, fuelValues, getAdvancements, getAllLevels, getAverageTickTimeNanos, getChatDecorator, getCommands, getCommandStorage, getConnection, getCurrentSmoothedTickTime, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getMaxPlayers, getModdedStatus, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerNames, getPort, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScoreboard, getServerDirectory, getServerModName, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getTickTimesNanos, getWorldData, getWorldPath, getWorldScreenshotFile, halt, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isHardcore, isPaused, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isStopped, isTimeProfilerRunning, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, managedBlock, markWorldsDirty, onServerCrash, onTickRateChanged, overworld, pollTask, potionBrewing, publishServer, registries, registryAccess, reloadableRegistries, reloadResources, reportChunkLoadFailure, reportChunkSaveFailure, reportPacketHandlingException, runServer, saveAllChunks, saveEverything, scheduleExecutables, sendSystemMessage, setDefaultGameType, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFatalException, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopTimeProfiler, throwIfFatalException, tickChildren, tickRateManager, tickServer, 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.server.ServerInfo
getMaxPlayers, getMotd, getPlayerCount, getServerVersion
从接口继承的方法 net.minecraft.server.ServerInterface
getPlayerNames
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
scheduleWithResult
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
CONVERSION_RETRY_DELAY_MS
private static final int CONVERSION_RETRY_DELAY_MS- 另请参阅:
-
CONVERSION_RETRIES
private static final int CONVERSION_RETRIES- 另请参阅:
-
consoleInput
-
queryThreadGs4
-
rconConsoleSource
-
rconThread
-
settings
-
gui
-
serverTextFilter
-
tickTimeLogger
-
debugSampleSubscriptionTracker
-
serverLinks
-
dediLanPinger
-
-
构造器详细资料
-
DedicatedServer
public DedicatedServer(Thread p_214789_, LevelStorageSource.LevelStorageAccess p_214790_, PackRepository p_214791_, WorldStem p_214792_, DedicatedServerSettings p_214793_, com.mojang.datafixers.DataFixer p_214794_, Services p_214795_, ChunkProgressListenerFactory p_214796_)
-
-
方法详细资料
-
initServer
- 指定者:
initServer
在类中MinecraftServer
- 抛出:
IOException
-
isSpawningMonsters
public boolean isSpawningMonsters()- 覆盖:
isSpawningMonsters
在类中MinecraftServer
-
getProperties
- 指定者:
getProperties
在接口中ServerInterface
-
forceDifficulty
public void forceDifficulty()- 覆盖:
forceDifficulty
在类中MinecraftServer
-
fillServerSystemReport
- 指定者:
fillServerSystemReport
在类中MinecraftServer
-
dumpServerProperties
- 覆盖:
dumpServerProperties
在类中MinecraftServer
- 抛出:
IOException
-
onServerExit
public void onServerExit()- 覆盖:
onServerExit
在类中MinecraftServer
-
tickConnection
public void tickConnection()- 覆盖:
tickConnection
在类中MinecraftServer
-
isLevelEnabled
- 覆盖:
isLevelEnabled
在类中MinecraftServer
-
handleConsoleInput
-
handleConsoleInputs
public void handleConsoleInputs() -
isDedicatedServer
public boolean isDedicatedServer()- 指定者:
isDedicatedServer
在类中MinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond() -
isEpollEnabled
public boolean isEpollEnabled()- 指定者:
isEpollEnabled
在类中MinecraftServer
-
getPlayerList
- 覆盖:
getPlayerList
在类中MinecraftServer
-
isPublished
public boolean isPublished()- 指定者:
isPublished
在类中MinecraftServer
-
getServerIp
- 指定者:
getServerIp
在接口中ServerInterface
-
getServerPort
public int getServerPort()- 指定者:
getServerPort
在接口中ServerInterface
-
getServerName
- 指定者:
getServerName
在接口中ServerInterface
-
showGui
public void showGui() -
hasGui
public boolean hasGui()- 覆盖:
hasGui
在类中MinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- 指定者:
isCommandBlockEnabled
在类中MinecraftServer
-
getSpawnProtectionRadius
public int getSpawnProtectionRadius() -
isUnderSpawnProtection
-
repliesToStatus
public boolean repliesToStatus()- 覆盖:
repliesToStatus
在类中MinecraftServer
-
hidesOnlinePlayers
public boolean hidesOnlinePlayers()- 覆盖:
hidesOnlinePlayers
在类中MinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel() -
getFunctionCompilationLevel
public int getFunctionCompilationLevel() -
setPlayerIdleTimeout
public void setPlayerIdleTimeout(int p_139676_) - 覆盖:
setPlayerIdleTimeout
在类中MinecraftServer
-
shouldRconBroadcast
public boolean shouldRconBroadcast()- 指定者:
shouldRconBroadcast
在类中MinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- 指定者:
shouldInformAdmins
在接口中CommandSource
- 指定者:
shouldInformAdmins
在类中MinecraftServer
-
getAbsoluteMaxWorldSize
public int getAbsoluteMaxWorldSize() -
getCompressionThreshold
public int getCompressionThreshold() -
enforceSecureProfile
public boolean enforceSecureProfile()- 覆盖:
enforceSecureProfile
在类中MinecraftServer
-
logIPs
public boolean logIPs()- 覆盖:
logIPs
在类中MinecraftServer
-
convertOldUsers
protected boolean convertOldUsers() -
waitForRetry
private void waitForRetry() -
getMaxTickLength
public long getMaxTickLength() -
getMaxChainedNeighborUpdates
public int getMaxChainedNeighborUpdates() -
getPluginNames
- 指定者:
getPluginNames
在接口中ServerInterface
-
runCommand
- 指定者:
runCommand
在接口中ServerInterface
-
storeUsingWhiteList
public void storeUsingWhiteList(boolean p_139689_) -
stopServer
public void stopServer()- 覆盖:
stopServer
在类中MinecraftServer
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_139642_) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_139659_) -
getLevelIdName
- 指定者:
getLevelIdName
在接口中ServerInterface
-
forceSynchronousWrites
public boolean forceSynchronousWrites() -
createTextFilterForPlayer
-
getForcedGameType
- 覆盖:
getForcedGameType
在类中MinecraftServer
-
getServerResourcePack
- 覆盖:
getServerResourcePack
在类中MinecraftServer
-
endMetricsRecordingTick
public void endMetricsRecordingTick() -
getTickTimeLogger
- 指定者:
getTickTimeLogger
在类中MinecraftServer
-
isTickTimeLoggingEnabled
public boolean isTickTimeLoggingEnabled()- 指定者:
isTickTimeLoggingEnabled
在类中MinecraftServer
-
subscribeToDebugSample
-
acceptsTransfers
public boolean acceptsTransfers()- 覆盖:
acceptsTransfers
在类中MinecraftServer
-
serverLinks
- 覆盖:
serverLinks
在类中MinecraftServer
-
pauseWhileEmptySeconds
public int pauseWhileEmptySeconds() -
createServerLinks
-
parseBugReportLink
-