Package net.minecraft.server.dedicated
Class 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
- All Implemented Interfaces:
- AutoCloseable,- Executor,- CommandSource,- ServerInfo,- ServerInterface,- ProfilerMeasured,- ProcessorHandle<TickTask>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.server.MinecraftServerMinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal List<ConsoleInput>private static final intprivate static final intprivate LanServerPingerprivate MinecraftServerGui(package private) static final org.slf4j.Loggerprivate QueryThreadGs4private final RconConsoleSourceprivate RconThreadprivate final DedicatedServerSettingsprivate final TextFilterClientFields inherited from class net.minecraft.server.MinecraftServerABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, services, START_CHUNK_RADIUS, storageSource, tickTimes, VANILLA_BRAND, worldDataFields inherited from interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructorsConstructorDescriptionDedicatedServer(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_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprotected booleancreateTextFilterForPlayer(ServerPlayer p_139634_) voiddumpServerProperties(Path p_142872_) booleanfillServerSystemReport(SystemReport p_142870_) voidbooleanintintintintlongintintintgetScaledTrackingDistance(int p_139659_) intintvoidhandleConsoleInput(String p_139646_, CommandSourceStack p_139647_) voidbooleanhasGui()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSingleplayerOwner(com.mojang.authlib.GameProfile p_139642_) booleanbooleanbooleanisUnderSpawnProtection(ServerLevel p_139630_, BlockPos p_139631_, Player p_139632_) booleanlogIPs()voidbooleanrunCommand(String p_139644_) voidsetPlayerIdleTimeout(int p_139676_) booleanbooleanvoidshowGui()voidvoidstoreUsingWhiteList(boolean p_139689_) voidtickChildren(BooleanSupplier p_139661_) private voidMethods inherited from class net.minecraft.server.MinecraftServeracceptsFailure, 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, 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, logTickTime, 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, wrapRunnableMethods inherited from class net.minecraft.util.thread.ReentrantBlockableEventLooprunningTaskMethods inherited from class net.minecraft.util.thread.BlockableEventLoopdropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasksMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraft.util.thread.ProcessorHandleask, askEitherMethods inherited from interface net.minecraft.server.ServerInfogetMaxPlayers, getMotd, getPlayerCount, getServerVersionMethods inherited from interface net.minecraft.server.ServerInterfacegetPlayerNames
- 
Field Details- 
LOGGERstatic final org.slf4j.Logger LOGGER
- 
CONVERSION_RETRY_DELAY_MSprivate static final int CONVERSION_RETRY_DELAY_MS- See Also:
 
- 
CONVERSION_RETRIESprivate static final int CONVERSION_RETRIES- See Also:
 
- 
consoleInput
- 
queryThreadGs4
- 
rconConsoleSource
- 
rconThread
- 
settings
- 
gui
- 
textFilterClient
- 
dediLanPinger
 
- 
- 
Constructor Details- 
DedicatedServerpublic 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_) 
 
- 
- 
Method Details- 
initServer- Specified by:
- initServerin class- MinecraftServer
- Throws:
- IOException
 
- 
isSpawningAnimalspublic boolean isSpawningAnimals()- Overrides:
- isSpawningAnimalsin class- MinecraftServer
 
- 
isSpawningMonsterspublic boolean isSpawningMonsters()- Overrides:
- isSpawningMonstersin class- MinecraftServer
 
- 
areNpcsEnabledpublic boolean areNpcsEnabled()- Overrides:
- areNpcsEnabledin class- MinecraftServer
 
- 
getProperties- Specified by:
- getPropertiesin interface- ServerInterface
 
- 
forceDifficultypublic void forceDifficulty()- Overrides:
- forceDifficultyin class- MinecraftServer
 
- 
isHardcorepublic boolean isHardcore()- Overrides:
- isHardcorein class- MinecraftServer
 
- 
fillServerSystemReport- Specified by:
- fillServerSystemReportin class- MinecraftServer
 
- 
dumpServerProperties- Overrides:
- dumpServerPropertiesin class- MinecraftServer
- Throws:
- IOException
 
- 
onServerExitpublic void onServerExit()- Overrides:
- onServerExitin class- MinecraftServer
 
- 
tickChildren- Overrides:
- tickChildrenin class- MinecraftServer
 
- 
isNetherEnabledpublic boolean isNetherEnabled()- Overrides:
- isNetherEnabledin class- MinecraftServer
 
- 
handleConsoleInput
- 
handleConsoleInputspublic void handleConsoleInputs()
- 
isDedicatedServerpublic boolean isDedicatedServer()- Specified by:
- isDedicatedServerin class- MinecraftServer
 
- 
getRateLimitPacketsPerSecondpublic int getRateLimitPacketsPerSecond()- Specified by:
- getRateLimitPacketsPerSecondin class- MinecraftServer
 
- 
isEpollEnabledpublic boolean isEpollEnabled()- Specified by:
- isEpollEnabledin class- MinecraftServer
 
- 
getPlayerList- Overrides:
- getPlayerListin class- MinecraftServer
 
- 
isPublishedpublic boolean isPublished()- Specified by:
- isPublishedin class- MinecraftServer
 
- 
getServerIp- Specified by:
- getServerIpin interface- ServerInterface
 
- 
getServerPortpublic int getServerPort()- Specified by:
- getServerPortin interface- ServerInterface
 
- 
getServerName- Specified by:
- getServerNamein interface- ServerInterface
 
- 
showGuipublic void showGui()
- 
hasGuipublic boolean hasGui()- Overrides:
- hasGuiin class- MinecraftServer
 
- 
isCommandBlockEnabledpublic boolean isCommandBlockEnabled()- Specified by:
- isCommandBlockEnabledin class- MinecraftServer
 
- 
getSpawnProtectionRadiuspublic int getSpawnProtectionRadius()- Overrides:
- getSpawnProtectionRadiusin class- MinecraftServer
 
- 
isUnderSpawnProtection- Overrides:
- isUnderSpawnProtectionin class- MinecraftServer
 
- 
repliesToStatuspublic boolean repliesToStatus()- Overrides:
- repliesToStatusin class- MinecraftServer
 
- 
hidesOnlinePlayerspublic boolean hidesOnlinePlayers()- Overrides:
- hidesOnlinePlayersin class- MinecraftServer
 
- 
getOperatorUserPermissionLevelpublic int getOperatorUserPermissionLevel()- Specified by:
- getOperatorUserPermissionLevelin class- MinecraftServer
 
- 
getFunctionCompilationLevelpublic int getFunctionCompilationLevel()- Specified by:
- getFunctionCompilationLevelin class- MinecraftServer
 
- 
setPlayerIdleTimeoutpublic void setPlayerIdleTimeout(int p_139676_) - Overrides:
- setPlayerIdleTimeoutin class- MinecraftServer
 
- 
shouldRconBroadcastpublic boolean shouldRconBroadcast()- Specified by:
- shouldRconBroadcastin class- MinecraftServer
 
- 
shouldInformAdminspublic boolean shouldInformAdmins()- Specified by:
- shouldInformAdminsin interface- CommandSource
- Specified by:
- shouldInformAdminsin class- MinecraftServer
 
- 
getAbsoluteMaxWorldSizepublic int getAbsoluteMaxWorldSize()- Overrides:
- getAbsoluteMaxWorldSizein class- MinecraftServer
 
- 
getCompressionThresholdpublic int getCompressionThreshold()- Overrides:
- getCompressionThresholdin class- MinecraftServer
 
- 
enforceSecureProfilepublic boolean enforceSecureProfile()- Overrides:
- enforceSecureProfilein class- MinecraftServer
 
- 
logIPspublic boolean logIPs()- Overrides:
- logIPsin class- MinecraftServer
 
- 
convertOldUsersprotected boolean convertOldUsers()
- 
waitForRetryprivate void waitForRetry()
- 
getMaxTickLengthpublic long getMaxTickLength()
- 
getMaxChainedNeighborUpdatespublic int getMaxChainedNeighborUpdates()- Overrides:
- getMaxChainedNeighborUpdatesin class- MinecraftServer
 
- 
getPluginNames- Specified by:
- getPluginNamesin interface- ServerInterface
 
- 
runCommand- Specified by:
- runCommandin interface- ServerInterface
 
- 
storeUsingWhiteListpublic void storeUsingWhiteList(boolean p_139689_) 
- 
stopServerpublic void stopServer()- Overrides:
- stopServerin class- MinecraftServer
 
- 
isSingleplayerOwnerpublic boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_139642_) - Specified by:
- isSingleplayerOwnerin class- MinecraftServer
 
- 
getScaledTrackingDistancepublic int getScaledTrackingDistance(int p_139659_) - Overrides:
- getScaledTrackingDistancein class- MinecraftServer
 
- 
getLevelIdName- Specified by:
- getLevelIdNamein interface- ServerInterface
 
- 
forceSynchronousWritespublic boolean forceSynchronousWrites()- Overrides:
- forceSynchronousWritesin class- MinecraftServer
 
- 
createTextFilterForPlayer- Overrides:
- createTextFilterForPlayerin class- MinecraftServer
 
- 
getForcedGameType- Overrides:
- getForcedGameTypein class- MinecraftServer
 
- 
getServerResourcePack- Overrides:
- getServerResourcePackin class- MinecraftServer
 
 
-