net.minecraft.server.dedicated

public class MinecraftDedicatedServer

extends MinecraftServer implements DedicatedServer

All mapped superinterfaces:

TaskExecutor, SampleableExecutor, CommandOutput, QueryableServer, ChunkErrorHandler, DedicatedServer

net.minecraft.server.dedicated.DedicatedServer
net.minecraft.class_3176
net.minecraft.server.dedicated.MinecraftDedicatedServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_13814
LOGGER
private static final int
CONVERSION_RETRY_DELAY_MS
field_29662
CONVERSION_RETRY_INTERVAL
private static final int
CONVERSION_RETRIES
field_29663
CONVERSION_TRY_COUNT
private final List<PendingServerCommand>
consoleInput
field_13815
commandQueue
private QueryResponseHandler
queryThreadGs4
field_13816
queryResponseHandler
private final RconCommandOutput
rconConsoleSource
field_13811
rconCommandOutput
private RconListener
rconThread
field_13819
rconServer
private final ServerPropertiesLoader
settings
field_16799
propertiesLoader
private DedicatedServerGui
gui
field_16800
gui
private final AbstractTextFilterer
serverTextFilter
field_52350
filterer
private SubscribableDebugSampleLog
tickTimeLogger
field_48788
debugSampleLog
private boolean
isTickTimeLoggingEnabled
field_62792
shouldPushTickTimeLog
private final ServerLinks
serverLinks
field_52215
serverLinks
private final Map<String, String>
codeOfConductTexts
field_62062
codeOfConductLanguages
private final ManagementServer
jsonRpcServer
field_62279
managementServer

Constructor summary

ModifierConstructor
public (Thread serverThread, LevelStorage$Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Optional<GameRules> gameRules, ServerPropertiesLoader propertiesLoader, com.mojang.datafixers.DataFixer dataFixer, ApiServices apiServices, ManagementServer managementServer, CompositeManagementListener compositeManagementListener)

Method summary

Modifier and TypeMethod
private static Map<String, String>
readCodeOfConducts()
method_73283()
loadCodeOfConductLanguages()
protected boolean
initServer()
method_3823()
setupServer()
public boolean
isEnforceWhitelist()
method_3729()
isEnforceWhitelist()
public void
setEnforceWhitelist(boolean enforceWhitelist)
method_3731(boolean arg0)
setEnforceWhitelist(boolean arg0)
public boolean
isUsingWhitelist()
method_73568()
getUseAllowlist()
public void
setUsingWhitelist(boolean usingWhitelist)
method_73589(boolean arg0)
setUseAllowlist(boolean arg0)
protected void
tickServer(BooleanSupplier haveTime)
method_3748(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
public boolean
saveAllChunks(boolean silent, boolean flush, boolean force)
method_3723(boolean arg0, boolean arg1, boolean arg2)
save(boolean arg0, boolean arg1, boolean arg2)
public void
sendLowDiskSpaceWarning()
method_57823()
showLowDiskSpaceWarning()
public boolean
allowFlight()
method_3718()
isFlightEnabled()
public void
setAllowFlight(boolean allowed)
method_73595(boolean arg0)
setAllowFlight(boolean allowFlight)
public ServerPropertiesHandler
getProperties()
method_16705()
getProperties()
public void
setDifficulty(Difficulty difficulty)
method_73563(class_1267 arg0)
setDifficulty(Difficulty difficulty)
protected void
forceDifficulty()
method_27731()
updateDifficulty()
public int
viewDistance()
method_73575()
getViewDistance()
public void
setViewDistance(int viewDistance)
method_73581(int arg0)
setViewDistance(int viewDistance)
public int
simulationDistance()
method_73576()
getSimulationDistance()
public void
setSimulationDistance(int simulationDistance)
method_73584(int arg0)
setSimulationDistance(int simulationDistance)
public SystemDetails
fillServerSystemReport(SystemReport systemReport)
method_3859(class_6396 arg0)
addExtraSystemDetails(SystemDetails arg0)
public void
dumpServerProperties(Path path)
method_37113(Path arg0)
dumpProperties(Path arg0)
protected void
onServerExit()
method_3821()
exit()
protected void
tickConnection()
method_61254()
tickNetworkIo()
public void
handleConsoleInput(String msg, CommandSourceStack source)
method_13947(String arg0, class_2168 arg1)
enqueueCommand(String command, ServerCommandSource commandSource)
public void
handleConsoleInputs()
method_13941()
executeQueuedCommands()
public boolean
isDedicatedServer()
method_3816()
isDedicated()
public int
getRateLimitPacketsPerSecond()
method_30612()
getRateLimit()
public int
getCommandSpamThresholdSeconds()
method_1_6280()
getCommandSpamThreshold()
public int
getChatSpamThresholdSeconds()
method_1_6279()
getChatSpamThreshold()
public boolean
useNativeTransport()
method_3759()
isUsingNativeTransport()
public DedicatedPlayerManager
getPlayerList()
method_3760()
getPlayerManager()
public int
getMaxPlayers()
method_3802()
getMaxPlayerCount()
public void
setMaxPlayers(int maxPlayers)
method_73587(int arg0)
setMaxPlayers(int maxPlayers)
public boolean
isPublished()
method_3860()
isRemote()
public String
getServerIp()
method_12929()
getHostname()
public int
getServerPort()
method_12918()
getPort()
public String
getServerName()
method_12930()
getMotd()
public void
showGui()
method_13948()
createGui()
public int
spawnProtectionRadius()
method_3841()
getSpawnProtectionRadius()
public void
setSpawnProtectionRadius(int spawnProtectionRadius)
method_73591(int arg0)
setSpawnProtectionRadius(int spawnProtectionRadius)
public boolean
isUnderSpawnProtection(ServerLevel level, BlockPos pos, Player player)
method_3785(class_3218 arg0, class_2338 arg1, class_1657 arg2)
isSpawnProtected(ServerWorld arg0, BlockPos arg1, PlayerEntity arg2)
public boolean
repliesToStatus()
method_27902()
acceptsStatusQuery()
public void
setRepliesToStatus(boolean enable)
method_73597(boolean arg0)
setStatusReplies(boolean statusReplies)
public boolean
hidesOnlinePlayers()
method_39424()
hideOnlinePlayers()
public void
setHidesOnlinePlayers(boolean hide)
method_73599(boolean arg0)
setHideOnlinePlayers(boolean hideOnlinePlayers)
public LeveledPermissionPredicate
operatorUserPermissions()
method_74994()
getOpPermissionLevel()
public void
setOperatorUserPermissions(LevelBasedPermissionSet permissions)
method_73593(class_12086 arg0)
setOperatorUserPermissionLevel(LeveledPermissionPredicate operatorUserPermissionLevel)
public PermissionPredicate
getFunctionCompilationPermissions()
method_74995()
getFunctionPermissions()
public int
playerIdleTimeout()
method_3862()
getPlayerIdleTimeout()
public void
setPlayerIdleTimeout(int playerIdleTimeout)
method_3803(int arg0)
setPlayerIdleTimeout(int arg0)
public int
statusHeartbeatInterval()
method_73571()
getStatusHeartbeatInterval()
public boolean
setStatusHeartbeatInterval(int statusHeartbeatInterval)
method_73596(int arg0)
setStatusHeartbeatInterval(int statusHeartbeatInterval)
public String
getMotd()
method_3818()
getServerMotd()
public void
setMotd(String motd)
method_3834(String arg0)
setMotd(String arg0)
public boolean
shouldRconBroadcast()
method_3732()
shouldBroadcastRconToOps()
public boolean
shouldInformAdmins()
method_9201()
shouldBroadcastConsoleToOps()
public int
getAbsoluteMaxWorldSize()
method_3749()
getMaxWorldBorderRadius()
public int
getCompressionThreshold()
method_3773()
getNetworkCompressionThreshold()
public boolean
enforceSecureProfile()
method_43500()
shouldEnforceSecureProfile()
public boolean
logIPs()
method_52344()
shouldLogIps()
protected boolean
convertOldUsers()
method_13951()
convertData()
private void
waitForRetry()
method_13942()
sleepFiveSeconds()
public long
getMaxTickLength()
method_13944()
getMaxTickTime()
public int
getMaxChainedNeighborUpdates()
method_41239()
getMaxChainedNeighborUpdates()
public String
getPluginNames()
method_12916()
getPlugins()
public String
runCommand(String command)
method_12934(String arg0)
executeRconCommand(String arg0)
protected void
stopServer()
method_3782()
shutdown()
public boolean
isSingleplayerOwner(NameAndId nameAndId)
method_19466(class_11560 arg0)
isHost(PlayerConfigEntry arg0)
public int
getScaledTrackingDistance(int range)
method_27903(int arg0)
adjustTrackingDistance(int arg0)
public int
entityBroadcastRangePercentage()
method_73572()
getEntityBroadcastRange()
public void
setEntityBroadcastRangePercentage(int range)
method_73598(int arg0)
setEntityBroadcastRange(int entityBroadcastRange)
public String
getLevelIdName()
method_3865()
getLevelName()
public boolean
forceSynchronousWrites()
method_27051()
syncChunkWrites()
public TextStream
createTextFilterForPlayer(ServerPlayer player)
method_31371(class_3222 arg0)
createFilterer(ServerPlayerEntity arg0)
public GameMode
getForcedGameType()
method_3761()
getForcedGameMode()
public boolean
forceGameMode()
method_73573()
getForceGameMode()
public void
setForceGameMode(boolean forceGameMode)
method_73601(boolean arg0)
setForceGameMode(boolean forceGameMode)
public GameMode
gameMode()
method_73574()
getGameMode()
public void
setGameMode(GameType gameMode)
method_73578(class_1934 arg0)
setGameMode(GameMode gameMode)
public Optional<MinecraftServer$ServerResourcePackProperties>
getServerResourcePack()
method_43659()
getResourcePackProperties()
protected void
endMetricsRecordingTick()
method_24490()
endTickMetrics()
protected DebugSampleLog
getTickTimeLogger()
method_56593()
getDebugSampleLog()
public boolean
isTickTimeLoggingEnabled()
method_56626()
shouldPushTickTimeLog()
public boolean
acceptsTransfers()
method_56040()
acceptsTransfers()
public void
setAcceptsTransfers(boolean acceptTransfers)
method_73602(boolean arg0)
setAcceptTransfers(boolean acceptTransfers)
public ServerLinks
serverLinks()
method_60672()
getServerLinks()
public int
pauseWhenEmptySeconds()
method_61255()
getPauseWhenEmptySeconds()
public void
setPauseWhenEmptySeconds(int seconds)
method_73600(int arg0)
setPauseWhenEmptySeconds(int pauseWhenEmptySeconds)
private static ServerLinks
createServerLinks(DedicatedServerSettings settings)
method_60940(class_3807 arg0)
loadServerLinks(ServerPropertiesLoader propertiesLoader)
private static Optional<URI>
parseBugReportLink(DedicatedServerProperties properties)
method_60939(class_3806 arg0)
parseBugReportLink(ServerPropertiesHandler propertiesHandler)
public Map<String, String>
getCodeOfConducts()
method_73282()
getCodeOfConductLanguages()
public PlayerManager
getPlayerList()
method_3760()
getPlayerManager()
private static ServerLinks
lambda$createServerLinks$0(URI arg0)
method_60941(URI arg0)
method_60941(URI uri)
private ServerPropertiesHandler
lambda$setPauseWhenEmptySeconds$0(int arg0, DedicatedServerProperties arg1)
method_73562(int arg0, class_3806 arg1)
method_73562(int arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setAcceptsTransfers$0(boolean arg0, DedicatedServerProperties arg1)
method_73567(boolean arg0, class_3806 arg1)
method_73567(boolean arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setGameMode$0(GameType arg0, DedicatedServerProperties arg1)
method_73565(class_1934 arg0, class_3806 arg1)
method_73565(GameMode arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setForceGameMode$0(boolean arg0, DedicatedServerProperties arg1)
method_73570(boolean arg0, class_3806 arg1)
method_73570(boolean arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setEntityBroadcastRangePercentage$0(int arg0, DedicatedServerProperties arg1)
method_73569(int arg0, class_3806 arg1)
method_73569(int arg0, ServerPropertiesHandler handler)
private void
lambda$runCommand$0(String arg0)
method_20799(String arg0)
method_20799(String arg0)
private ServerPropertiesHandler
lambda$setMotd$0(String arg0, DedicatedServerProperties arg1)
method_73566(String arg0, class_3806 arg1)
method_73566(String arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setStatusHeartbeatInterval$0(int arg0, DedicatedServerProperties arg1)
method_73577(int arg0, class_3806 arg1)
method_73577(int arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setPlayerIdleTimeout$0(int arg0, DedicatedServerProperties arg1)
method_16710(int arg0, class_3806 arg1)
method_16710(int arg0, ServerPropertiesHandler serverPropertiesHandler)
private ServerPropertiesHandler
lambda$setOperatorUserPermissions$0(LevelBasedPermissionSet arg0, DedicatedServerProperties arg1)
method_74993(class_12086 arg0, class_3806 arg1)
method_74993(LeveledPermissionPredicate arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setHidesOnlinePlayers$0(boolean arg0, DedicatedServerProperties arg1)
method_73579(boolean arg0, class_3806 arg1)
method_73579(boolean arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setRepliesToStatus$0(boolean arg0, DedicatedServerProperties arg1)
method_73580(boolean arg0, class_3806 arg1)
method_73580(boolean arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setSpawnProtectionRadius$0(int arg0, DedicatedServerProperties arg1)
method_73585(int arg0, class_3806 arg1)
method_73585(int arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setMaxPlayers$0(int arg0, DedicatedServerProperties arg1)
method_73588(int arg0, class_3806 arg1)
method_73588(int arg0, ServerPropertiesHandler handler)
private static Object
lambda$fillServerSystemReport$1()
method_13943()
method_13943()
private Object
lambda$fillServerSystemReport$0()
method_13946()
method_13946()
private ServerPropertiesHandler
lambda$setSimulationDistance$0(int arg0, DedicatedServerProperties arg1)
method_73592(int arg0, class_3806 arg1)
method_73592(int arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setViewDistance$0(int arg0, DedicatedServerProperties arg1)
method_73594(int arg0, class_3806 arg1)
method_73594(int arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setDifficulty$0(Difficulty arg0, DedicatedServerProperties arg1)
method_73564(class_1267 arg0, class_3806 arg1)
method_73564(Difficulty arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setAllowFlight$0(boolean arg0, DedicatedServerProperties arg1)
method_73583(boolean arg0, class_3806 arg1)
method_73583(boolean arg0, ServerPropertiesHandler handler)
private static void
lambda$sendLowDiskSpaceWarning$1(ServerPlayer arg0)
method_1_491(class_3222 arg0)
method_1_491(ServerPlayerEntity player)
private static boolean
lambda$sendLowDiskSpaceWarning$0(Permission$HasCommandLevel arg0, ServerPlayer arg1)
method_1_490(class_12087$class_12089 arg0, class_3222 arg1)
method_1_490(Permission$Level arg0, ServerPlayerEntity player)
private ServerPropertiesHandler
lambda$setUsingWhitelist$0(boolean arg0, DedicatedServerProperties arg1)
method_73586(boolean arg0, class_3806 arg1)
method_73586(boolean arg0, ServerPropertiesHandler handler)
private ServerPropertiesHandler
lambda$setEnforceWhitelist$0(boolean arg0, DedicatedServerProperties arg1)
method_73590(boolean arg0, class_3806 arg1)
method_73590(boolean arg0, ServerPropertiesHandler handler)