Package net.minecraft.server.dedicated
Class DedicatedServer
java.lang.Object
net.minecraft.util.concurrent.ThreadTaskExecutor<R>
net.minecraft.util.concurrent.RecursiveEventLoop<TickDelayedTask>
net.minecraft.server.MinecraftServer
net.minecraft.server.dedicated.DedicatedServer
- All Implemented Interfaces:
AutoCloseable
,Executor
,ICommandSource
,IServer
,ISnooperInfo
,ITaskExecutor<TickDelayedTask>
-
Field Summary
Modifier and TypeFieldDescriptionfinal List<PendingCommand>
private MinecraftServerGui
private static final org.apache.logging.log4j.Logger
private QueryThread
private final RConConsoleSource
private MainThread
private final ServerPropertiesProvider
private static final Pattern
private final ChatFilterClient
Fields inherited from class net.minecraft.server.MinecraftServer
DEMO_SETTINGS, nextTickTime, playerDataStorage, proxy, registryHolder, storageSource, tickTimes, USERID_CACHE_FILE, worldData
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
ConstructorDescriptionDedicatedServer
(Thread p_i232601_1_, DynamicRegistries.Impl p_i232601_2_, SaveFormat.LevelSave p_i232601_3_, ResourcePackList p_i232601_4_, DataPackRegistries p_i232601_5_, IServerConfiguration p_i232601_6_, ServerPropertiesProvider p_i232601_7_, com.mojang.datafixers.DataFixer p_i232601_8_, com.mojang.authlib.minecraft.MinecraftSessionService p_i232601_9_, com.mojang.authlib.GameProfileRepository p_i232601_10_, PlayerProfileCache p_i232601_11_, IChunkStatusListenerFactory p_i232601_12_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected boolean
createTextFilterForPlayer
(ServerPlayerEntity p_244435_1_) fillReport
(CrashReport p_71230_1_) void
boolean
int
int
int
long
int
int
int
getScaledTrackingDistance
(int p_230512_1_) int
int
void
handleConsoleInput
(String p_195581_1_, CommandSource p_195581_2_) void
boolean
hasGui()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_213199_1_) boolean
boolean
boolean
isUnderSpawnProtection
(ServerWorld p_175579_1_, BlockPos p_175579_2_, PlayerEntity p_175579_3_) void
void
populateSnooper
(Snooper p_70000_1_) boolean
publishServer
(GameType p_195565_1_, boolean p_195565_2_, int p_195565_3_) boolean
runCommand
(String p_71252_1_) void
sendMessage
(ITextComponent message, UUID p_145747_2_) void
setPlayerIdleTimeout
(int p_143006_1_) boolean
boolean
void
showGui()
void
void
storeUsingWhiteList
(boolean p_213223_1_) void
tickChildren
(BooleanSupplier p_71190_1_) private void
Methods inherited from class net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, close, configurePackRepository, convertFromRegionFormatIfNeeded, createCommandSourceStack, createLevels, detectBundledResources, doRunTask, finishProfiling, forgeGetWorldMap, getAdvancements, getAllLevels, getAverageTickTime, getCommands, getCommandStorage, getConnection, getCustomBossEvents, getDataPackRegistries, getDefaultGameType, getFile, getFixerUpper, getForceGameType, getFrameTimer, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getLootTables, getMaxBuildHeight, getMaxPlayers, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerNames, getPort, getPredicateManager, getPreventProxyConnections, getProfileCache, getProfilePermissions, getProfiler, getProfileRepository, getRecipeManager, getResourcePack, getResourcePackHash, getRunningThread, getScoreboard, getServerDirectory, getServerModName, getServerVersion, getSessionService, getSingleplayerName, getSnooper, getSpawnRadius, getStatus, getStructureManager, getTags, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, halt, hasWorldScreenshot, initializeKeyPair, invalidateStatus, isDemo, isEnforceWhitelist, isFlightAllowed, isProfiling, isPvpAllowed, isReady, isRunning, isShutdown, isSingleplayer, isStopped, kickUnlistedPlayers, levelKeys, loadLevel, markWorldsDirty, onServerCrash, overworld, pollTask, registryAccess, reloadResources, runServer, saveAllChunks, saveDebugReport, scheduleExecutables, setDefaultGameType, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightAllowed, setForceGameType, setId, setLocalIp, setMaxBuildHeight, setMotd, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setResourcePack, setSingleplayerName, setUsesAuthentication, shouldRun, spin, startProfiling, tickServer, usesAuthentication, waitUntilNextTick, wrapRunnable
Methods inherited from class net.minecraft.util.concurrent.RecursiveEventLoop
runningTask
Methods inherited from class net.minecraft.util.concurrent.ThreadTaskExecutor
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, runAllTasks, submit, submit, submitAsync, tell, waitForTasks
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.rcon.IServer
getMaxPlayers, getPlayerCount, getPlayerNames, getServerVersion
Methods inherited from interface net.minecraft.util.concurrent.ITaskExecutor
ask, askEither
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SHA1
-
consoleInput
-
queryThreadGs4
-
rconConsoleSource
-
rconThread
-
settings
-
gui
-
textFilterClient
-
-
Constructor Details
-
DedicatedServer
public DedicatedServer(Thread p_i232601_1_, DynamicRegistries.Impl p_i232601_2_, SaveFormat.LevelSave p_i232601_3_, ResourcePackList p_i232601_4_, DataPackRegistries p_i232601_5_, IServerConfiguration p_i232601_6_, ServerPropertiesProvider p_i232601_7_, com.mojang.datafixers.DataFixer p_i232601_8_, com.mojang.authlib.minecraft.MinecraftSessionService p_i232601_9_, com.mojang.authlib.GameProfileRepository p_i232601_10_, PlayerProfileCache p_i232601_11_, IChunkStatusListenerFactory p_i232601_12_)
-
-
Method Details
-
initServer
- Specified by:
initServer
in classMinecraftServer
- Throws:
IOException
-
isSpawningAnimals
public boolean isSpawningAnimals()- Overrides:
isSpawningAnimals
in classMinecraftServer
-
isSpawningMonsters
public boolean isSpawningMonsters()- Overrides:
isSpawningMonsters
in classMinecraftServer
-
areNpcsEnabled
public boolean areNpcsEnabled()- Overrides:
areNpcsEnabled
in classMinecraftServer
-
getPackHash
-
getProperties
- Specified by:
getProperties
in interfaceIServer
-
forceDifficulty
public void forceDifficulty()- Overrides:
forceDifficulty
in classMinecraftServer
-
isHardcore
public boolean isHardcore()- Overrides:
isHardcore
in classMinecraftServer
-
fillReport
- Overrides:
fillReport
in classMinecraftServer
-
getModdedStatus
- Specified by:
getModdedStatus
in classMinecraftServer
-
onServerExit
public void onServerExit()- Overrides:
onServerExit
in classMinecraftServer
-
tickChildren
- Overrides:
tickChildren
in classMinecraftServer
-
isNetherEnabled
public boolean isNetherEnabled()- Overrides:
isNetherEnabled
in classMinecraftServer
-
populateSnooper
- Specified by:
populateSnooper
in interfaceISnooperInfo
- Overrides:
populateSnooper
in classMinecraftServer
-
handleConsoleInput
-
handleConsoleInputs
public void handleConsoleInputs() -
isDedicatedServer
public boolean isDedicatedServer()- Specified by:
isDedicatedServer
in classMinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond()- Specified by:
getRateLimitPacketsPerSecond
in classMinecraftServer
-
isEpollEnabled
public boolean isEpollEnabled()- Specified by:
isEpollEnabled
in classMinecraftServer
-
getPlayerList
- Overrides:
getPlayerList
in classMinecraftServer
-
isPublished
public boolean isPublished()- Specified by:
isPublished
in classMinecraftServer
-
getServerIp
- Specified by:
getServerIp
in interfaceIServer
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfaceIServer
-
getServerName
- Specified by:
getServerName
in interfaceIServer
-
showGui
public void showGui() -
hasGui
public boolean hasGui()- Overrides:
hasGui
in classMinecraftServer
-
publishServer
- Specified by:
publishServer
in classMinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- Specified by:
isCommandBlockEnabled
in classMinecraftServer
-
getSpawnProtectionRadius
public int getSpawnProtectionRadius()- Overrides:
getSpawnProtectionRadius
in classMinecraftServer
-
isUnderSpawnProtection
public boolean isUnderSpawnProtection(ServerWorld p_175579_1_, BlockPos p_175579_2_, PlayerEntity p_175579_3_) - Overrides:
isUnderSpawnProtection
in classMinecraftServer
-
repliesToStatus
public boolean repliesToStatus()- Overrides:
repliesToStatus
in classMinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel()- Specified by:
getOperatorUserPermissionLevel
in classMinecraftServer
-
getFunctionCompilationLevel
public int getFunctionCompilationLevel()- Specified by:
getFunctionCompilationLevel
in classMinecraftServer
-
setPlayerIdleTimeout
public void setPlayerIdleTimeout(int p_143006_1_) - Overrides:
setPlayerIdleTimeout
in classMinecraftServer
-
shouldRconBroadcast
public boolean shouldRconBroadcast()- Specified by:
shouldRconBroadcast
in classMinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdmins
in interfaceICommandSource
-
getAbsoluteMaxWorldSize
public int getAbsoluteMaxWorldSize()- Overrides:
getAbsoluteMaxWorldSize
in classMinecraftServer
-
getCompressionThreshold
public int getCompressionThreshold()- Overrides:
getCompressionThreshold
in classMinecraftServer
-
convertOldUsers
protected boolean convertOldUsers() -
waitForRetry
private void waitForRetry() -
getMaxTickLength
public long getMaxTickLength() -
getPluginNames
- Specified by:
getPluginNames
in interfaceIServer
-
runCommand
- Specified by:
runCommand
in interfaceIServer
-
storeUsingWhiteList
public void storeUsingWhiteList(boolean p_213223_1_) -
stopServer
public void stopServer()- Overrides:
stopServer
in classMinecraftServer
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_213199_1_) - Specified by:
isSingleplayerOwner
in classMinecraftServer
-
sendMessage
- Specified by:
sendMessage
in interfaceICommandSource
- Overrides:
sendMessage
in classMinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_230512_1_) - Overrides:
getScaledTrackingDistance
in classMinecraftServer
-
getLevelIdName
- Specified by:
getLevelIdName
in interfaceIServer
-
forceSynchronousWrites
public boolean forceSynchronousWrites()- Overrides:
forceSynchronousWrites
in classMinecraftServer
-
createTextFilterForPlayer
- Overrides:
createTextFilterForPlayer
in classMinecraftServer
-