Package net.minecraft.server.integrated
Class IntegratedServer
java.lang.Object
net.minecraft.util.concurrent.ThreadTaskExecutor<R>
net.minecraft.util.concurrent.RecursiveEventLoop<TickDelayedTask>
net.minecraft.server.MinecraftServer
net.minecraft.server.integrated.IntegratedServer
- All Implemented Interfaces:
AutoCloseable
,Executor
,ICommandSource
,ISnooperInfo
,ITaskExecutor<TickDelayedTask>
-
Field Summary
Modifier and TypeFieldDescriptionprivate LanServerPingThread
private static final org.apache.logging.log4j.Logger
private final Minecraft
private boolean
private int
private UUID
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
ConstructorDescriptionIntegratedServer
(Thread p_i232494_1_, Minecraft p_i232494_2_, DynamicRegistries.Impl p_i232494_3_, SaveFormat.LevelSave p_i232494_4_, ResourcePackList p_i232494_5_, DataPackRegistries p_i232494_6_, IServerConfiguration p_i232494_7_, com.mojang.authlib.minecraft.MinecraftSessionService p_i232494_8_, com.mojang.authlib.GameProfileRepository p_i232494_9_, PlayerProfileCache p_i232494_10_, IChunkStatusListenerFactory p_i232494_11_) -
Method Summary
Modifier and TypeMethodDescriptionfillReport
(CrashReport p_71230_1_) boolean
int
int
int
getPort()
int
int
getScaledTrackingDistance
(int p_230512_1_) void
halt
(boolean p_71263_1_) boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_213199_1_) void
onServerCrash
(CrashReport p_71228_1_) void
populateSnooper
(Snooper p_70000_1_) boolean
publishServer
(GameType p_195565_1_, boolean p_195565_2_, int p_195565_3_) void
setDefaultGameType
(GameType p_71235_1_) void
boolean
boolean
void
void
tickServer
(BooleanSupplier p_71217_1_) Methods inherited from class net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, areNpcsEnabled, close, configurePackRepository, convertFromRegionFormatIfNeeded, createCommandSourceStack, createLevels, createTextFilterForPlayer, detectBundledResources, doRunTask, finishProfiling, forceDifficulty, forgeGetWorldMap, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTime, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCustomBossEvents, getDataPackRegistries, getDefaultGameType, getFile, getFixerUpper, getForceGameType, getFrameTimer, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getLootTables, getMaxBuildHeight, getMaxPlayers, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPredicateManager, getPreventProxyConnections, getProfileCache, getProfilePermissions, getProfiler, getProfileRepository, getRecipeManager, getResourcePack, getResourcePackHash, getRunningThread, getScoreboard, getServerModName, getServerVersion, getSessionService, getSingleplayerName, getSnooper, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStructureManager, getTags, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, hasGui, hasWorldScreenshot, initializeKeyPair, invalidateStatus, isDemo, isEnforceWhitelist, isFlightAllowed, isHardcore, isNetherEnabled, isProfiling, isPvpAllowed, isReady, isRunning, isShutdown, isSingleplayer, isSpawningAnimals, isSpawningMonsters, isStopped, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, markWorldsDirty, onServerExit, overworld, pollTask, registryAccess, reloadResources, repliesToStatus, runServer, saveAllChunks, saveDebugReport, scheduleExecutables, sendMessage, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightAllowed, setForceGameType, setId, setLocalIp, setMaxBuildHeight, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setResourcePack, setSingleplayerName, setUsesAuthentication, shouldRun, spin, startProfiling, tickChildren, 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.util.concurrent.ITaskExecutor
ask, askEither
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
minecraft
-
paused
private boolean paused -
publishedPort
private int publishedPort -
lanPinger
-
uuid
-
-
Constructor Details
-
IntegratedServer
public IntegratedServer(Thread p_i232494_1_, Minecraft p_i232494_2_, DynamicRegistries.Impl p_i232494_3_, SaveFormat.LevelSave p_i232494_4_, ResourcePackList p_i232494_5_, DataPackRegistries p_i232494_6_, IServerConfiguration p_i232494_7_, com.mojang.authlib.minecraft.MinecraftSessionService p_i232494_8_, com.mojang.authlib.GameProfileRepository p_i232494_9_, PlayerProfileCache p_i232494_10_, IChunkStatusListenerFactory p_i232494_11_)
-
-
Method Details
-
initServer
public boolean initServer()- Specified by:
initServer
in classMinecraftServer
-
tickServer
- Overrides:
tickServer
in classMinecraftServer
-
shouldRconBroadcast
public boolean shouldRconBroadcast()- Specified by:
shouldRconBroadcast
in classMinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins() -
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
-
fillReport
- Overrides:
fillReport
in classMinecraftServer
-
getModdedStatus
- Specified by:
getModdedStatus
in classMinecraftServer
-
populateSnooper
- Specified by:
populateSnooper
in interfaceISnooperInfo
- Overrides:
populateSnooper
in classMinecraftServer
-
publishServer
- Specified by:
publishServer
in classMinecraftServer
-
stopServer
public void stopServer()- Overrides:
stopServer
in classMinecraftServer
-
halt
public void halt(boolean p_71263_1_) - 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_213199_1_) - Specified by:
isSingleplayerOwner
in classMinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_230512_1_) - Overrides:
getScaledTrackingDistance
in classMinecraftServer
-
forceSynchronousWrites
public boolean forceSynchronousWrites()- Overrides:
forceSynchronousWrites
in classMinecraftServer
-