Package net.minecraft.client.server
Class IntegratedServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.client.server.IntegratedServer
- All Implemented Interfaces:
AutoCloseable
,Executor
,CommandSource
,ProfilerMeasured
,ProcessorHandle<TickTask>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources
-
Field Summary
Modifier and TypeFieldDescriptionprivate LanServerPinger
private static final org.slf4j.Logger
private static final int
private final Minecraft
private boolean
private int
private GameType
private int
private UUID
Fields inherited from class net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, LEVEL_STORAGE_PROTOCOL, LEVEL_STORAGE_SCHEMA, MAP_RESOURCE_FILE, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, START_CHUNK_RADIUS, storageSource, tickTimes, USERID_CACHE_FILE, VANILLA_BRAND, worldData
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
-
Constructor Summary
ConstructorDescriptionIntegratedServer
(Thread p_205653_, Minecraft p_205654_, LevelStorageSource.LevelStorageAccess p_205655_, PackRepository p_205656_, WorldStem p_205657_, com.mojang.authlib.minecraft.MinecraftSessionService p_205658_, com.mojang.authlib.GameProfileRepository p_205659_, GameProfileCache p_205660_, ChunkProgressListenerFactory p_205661_) -
Method Summary
Modifier and TypeMethodDescriptionfillServerSystemReport
(SystemReport p_174970_) boolean
int
int
int
getPort()
int
int
getScaledTrackingDistance
(int p_120056_) void
halt
(boolean p_120053_) boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_120045_) void
onServerCrash
(CrashReport p_120051_) boolean
publishServer
(GameType p_120041_, boolean p_120042_, int p_120043_) void
setDefaultGameType
(GameType p_120039_) void
boolean
boolean
void
private void
void
tickServer
(BooleanSupplier p_120049_) Methods inherited from class net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, areNpcsEnabled, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, createTextFilterForPlayer, detectBundledResources, doRunTask, dumpServerProperties, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceDifficulty, forgeGetWorldMap, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTime, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getFrameTimer, getFunctions, getGameRules, getItemModifierManager, getKeyPair, getLevel, getLocalIp, getLootTables, getMaxPlayers, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPredicateManager, getPreventProxyConnections, getProfileCache, getProfilePermissions, getProfiler, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getResourcePack, getResourcePackHash, getResourcePackPrompt, getRunningThread, getScoreboard, getServerModName, getServerResources, getServerVersion, getSessionService, getSingleplayerName, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStructureManager, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, hasGui, hidesOnlinePlayers, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isHardcore, isNetherEnabled, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningAnimals, isSpawningMonsters, isStopped, isTimeProfilerRunning, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, markWorldsDirty, onServerExit, overworld, pollTask, registryAccess, reloadResources, repliesToStatus, runServer, saveAllChunks, saveEverything, scheduleExecutables, sendMessage, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setResourcePack, setSingleplayerName, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopTimeProfiler, tickChildren, usesAuthentication, waitUntilNextTick, wrapRunnable
Methods inherited from class net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
Methods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, 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.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.minecraft.util.thread.ProcessorHandle
ask, askEither
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MIN_SIM_DISTANCE
private static final int MIN_SIM_DISTANCE- See Also:
-
minecraft
-
paused
private boolean paused -
publishedPort
private int publishedPort -
publishedGameType
-
lanPinger
-
uuid
-
previousSimulationDistance
private int previousSimulationDistance
-
-
Constructor Details
-
IntegratedServer
public IntegratedServer(Thread p_205653_, Minecraft p_205654_, LevelStorageSource.LevelStorageAccess p_205655_, PackRepository p_205656_, WorldStem p_205657_, com.mojang.authlib.minecraft.MinecraftSessionService p_205658_, com.mojang.authlib.GameProfileRepository p_205659_, GameProfileCache p_205660_, ChunkProgressListenerFactory p_205661_)
-
-
Method Details
-
initServer
public boolean initServer()- Specified by:
initServer
in classMinecraftServer
-
tickServer
- Overrides:
tickServer
in classMinecraftServer
-
tickPaused
private void tickPaused() -
shouldRconBroadcast
public boolean shouldRconBroadcast()- Specified by:
shouldRconBroadcast
in classMinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdmins
in interfaceCommandSource
- Specified by:
shouldInformAdmins
in classMinecraftServer
-
getServerDirectory
- Overrides:
getServerDirectory
in classMinecraftServer
-
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
-
onServerCrash
- Overrides:
onServerCrash
in classMinecraftServer
-
fillServerSystemReport
- Specified by:
fillServerSystemReport
in classMinecraftServer
-
getModdedStatus
- Overrides:
getModdedStatus
in classMinecraftServer
-
publishServer
- Overrides:
publishServer
in classMinecraftServer
-
stopServer
public void stopServer()- Overrides:
stopServer
in classMinecraftServer
-
halt
public void halt(boolean p_120053_) - Overrides:
halt
in classMinecraftServer
-
isPublished
public boolean isPublished()- Specified by:
isPublished
in classMinecraftServer
-
getPort
public int getPort()- Overrides:
getPort
in classMinecraftServer
-
setDefaultGameType
- Overrides:
setDefaultGameType
in classMinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- Specified by:
isCommandBlockEnabled
in classMinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel()- Specified by:
getOperatorUserPermissionLevel
in classMinecraftServer
-
getFunctionCompilationLevel
public int getFunctionCompilationLevel()- Specified by:
getFunctionCompilationLevel
in classMinecraftServer
-
setUUID
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_120045_) - Specified by:
isSingleplayerOwner
in classMinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_120056_) - Overrides:
getScaledTrackingDistance
in classMinecraftServer
-
forceSynchronousWrites
public boolean forceSynchronousWrites()- Overrides:
forceSynchronousWrites
in classMinecraftServer
-
getForcedGameType
- Overrides:
getForcedGameType
in classMinecraftServer
-