类 DedicatedServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.server.dedicated.DedicatedServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ServerInterface
,ProfilerMeasured
,ProcessorHandle<TickTask>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明final List<ConsoleInput>
private static final int
private static final int
private LanServerPinger
private MinecraftServerGui
(专用程序包) static final org.slf4j.Logger
private QueryThreadGs4
private final RconConsoleSource
private RconThread
private final DedicatedServerSettings
private final TextFilterClient
从类继承的字段 net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, services, START_CHUNK_RADIUS, storageSource, tickTimes, VANILLA_BRAND, worldData
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明DedicatedServer
(Thread pServerThread, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, WorldStem pWorldStem, DedicatedServerSettings pSettings, com.mojang.datafixers.DataFixer pFixerUpper, Services pServices, ChunkProgressListenerFactory pProgressListenerFactory) -
方法概要
修饰符和类型方法说明boolean
protected boolean
createTextFilterForPlayer
(ServerPlayer pPlayer) void
dumpServerProperties
(Path pPath) boolean
fillServerSystemReport
(SystemReport pReport) void
boolean
int
int
int
int
long
int
int
int
getScaledTrackingDistance
(int pTrackingDistance) int
int
void
handleConsoleInput
(String pMsg, CommandSourceStack pSource) void
boolean
hasGui()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile pProfile) boolean
boolean
boolean
isUnderSpawnProtection
(ServerLevel pLevel, BlockPos pPos, Player pPlayer) void
boolean
runCommand
(String pCommand) void
setPlayerIdleTimeout
(int pIdleTimeout) boolean
boolean
void
showGui()
void
void
storeUsingWhiteList
(boolean pIsStoreUsingWhiteList) void
tickChildren
(BooleanSupplier pHasTimeLeft) private void
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, doRunTask, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceTimeSynchronization, forgeGetWorldMap, getAdvancements, getAllLevels, getAverageTickTime, getChatDecorator, getCommands, getCommandStorage, getConnection, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getFrameTimer, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getLootData, getMaxPlayers, getModdedStatus, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerNames, getPort, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfiler, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScoreboard, getServerDirectory, getServerModName, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, halt, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isStopped, isTimeProfilerRunning, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, markWorldsDirty, onServerCrash, overworld, pollTask, publishServer, registries, registryAccess, reloadResources, runServer, saveAllChunks, saveEverything, scheduleExecutables, sendSystemMessage, setDefaultGameType, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopTimeProfiler, tickServer, usesAuthentication, waitUntilNextTick, wrapRunnable
从类继承的方法 net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasks
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraft.util.thread.ProcessorHandle
ask, askEither
从接口继承的方法 net.minecraft.server.ServerInterface
getMaxPlayers, getPlayerCount, getPlayerNames, getServerVersion
-
字段详细资料
-
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
-
textFilterClient
-
dediLanPinger
-
-
构造器详细资料
-
DedicatedServer
public DedicatedServer(Thread pServerThread, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, WorldStem pWorldStem, DedicatedServerSettings pSettings, com.mojang.datafixers.DataFixer pFixerUpper, Services pServices, ChunkProgressListenerFactory pProgressListenerFactory)
-
-
方法详细资料
-
initServer
- 指定者:
initServer
在类中MinecraftServer
- 抛出:
IOException
-
isSpawningAnimals
public boolean isSpawningAnimals()- 覆盖:
isSpawningAnimals
在类中MinecraftServer
-
isSpawningMonsters
public boolean isSpawningMonsters()- 覆盖:
isSpawningMonsters
在类中MinecraftServer
-
areNpcsEnabled
public boolean areNpcsEnabled()- 覆盖:
areNpcsEnabled
在类中MinecraftServer
-
getProperties
- 指定者:
getProperties
在接口中ServerInterface
-
forceDifficulty
public void forceDifficulty()- 覆盖:
forceDifficulty
在类中MinecraftServer
-
isHardcore
public boolean isHardcore()- 覆盖:
isHardcore
在类中MinecraftServer
-
fillServerSystemReport
- 指定者:
fillServerSystemReport
在类中MinecraftServer
-
dumpServerProperties
- 覆盖:
dumpServerProperties
在类中MinecraftServer
- 抛出:
IOException
-
onServerExit
public void onServerExit()- 覆盖:
onServerExit
在类中MinecraftServer
-
tickChildren
- 覆盖:
tickChildren
在类中MinecraftServer
-
isNetherEnabled
public boolean isNetherEnabled()- 覆盖:
isNetherEnabled
在类中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 pIdleTimeout) - 覆盖:
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
-
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 pIsStoreUsingWhiteList) -
stopServer
public void stopServer()- 覆盖:
stopServer
在类中MinecraftServer
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile pProfile) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int pTrackingDistance) -
getLevelIdName
- 指定者:
getLevelIdName
在接口中ServerInterface
-
forceSynchronousWrites
public boolean forceSynchronousWrites() -
createTextFilterForPlayer
-
getForcedGameType
- 覆盖:
getForcedGameType
在类中MinecraftServer
-
getServerResourcePack
- 覆盖:
getServerResourcePack
在类中MinecraftServer
-