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
FieldsModifier and TypeFieldDescriptionprivate LanServerPingThreadprivate static final org.apache.logging.log4j.Loggerprivate final Minecraftprivate booleanprivate intprivate UUIDFields inherited from class net.minecraft.server.MinecraftServer
DEMO_SETTINGS, nextTickTime, playerDataStorage, proxy, registryHolder, storageSource, tickTimes, USERID_CACHE_FILE, worldDataFields inherited from interface net.minecraft.command.ICommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionIntegratedServer(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_) booleanintintintgetPort()intintgetScaledTrackingDistance(int p_230512_1_) voidhalt(boolean p_71263_1_) booleanbooleanbooleanbooleanbooleanbooleanisSingleplayerOwner(com.mojang.authlib.GameProfile p_213199_1_) voidonServerCrash(CrashReport p_71228_1_) voidpopulateSnooper(Snooper p_70000_1_) booleanpublishServer(GameType p_195565_1_, boolean p_195565_2_, int p_195565_3_) voidsetDefaultGameType(GameType p_71235_1_) voidbooleanbooleanvoidvoidtickServer(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, wrapRunnableMethods inherited from class net.minecraft.util.concurrent.RecursiveEventLoop
runningTaskMethods inherited from class net.minecraft.util.concurrent.ThreadTaskExecutor
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, runAllTasks, submit, submit, submitAsync, tell, waitForTasksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initServerin classMinecraftServer
-
tickServer
- Overrides:
tickServerin classMinecraftServer
-
shouldRconBroadcast
public boolean shouldRconBroadcast()- Specified by:
shouldRconBroadcastin classMinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins() -
getServerDirectory
- Overrides:
getServerDirectoryin classMinecraftServer
-
isDedicatedServer
public boolean isDedicatedServer()- Specified by:
isDedicatedServerin classMinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond()- Specified by:
getRateLimitPacketsPerSecondin classMinecraftServer
-
isEpollEnabled
public boolean isEpollEnabled()- Specified by:
isEpollEnabledin classMinecraftServer
-
onServerCrash
- Overrides:
onServerCrashin classMinecraftServer
-
fillReport
- Overrides:
fillReportin classMinecraftServer
-
getModdedStatus
- Specified by:
getModdedStatusin classMinecraftServer
-
populateSnooper
- Specified by:
populateSnooperin interfaceISnooperInfo- Overrides:
populateSnooperin classMinecraftServer
-
publishServer
- Specified by:
publishServerin classMinecraftServer
-
stopServer
public void stopServer()- Overrides:
stopServerin classMinecraftServer
-
halt
public void halt(boolean p_71263_1_) - Overrides:
haltin classMinecraftServer
-
isPublished
public boolean isPublished()- Specified by:
isPublishedin classMinecraftServer
-
getPort
public int getPort()- Overrides:
getPortin classMinecraftServer
-
setDefaultGameType
- Overrides:
setDefaultGameTypein classMinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- Specified by:
isCommandBlockEnabledin classMinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel()- Specified by:
getOperatorUserPermissionLevelin classMinecraftServer
-
getFunctionCompilationLevel
public int getFunctionCompilationLevel()- Specified by:
getFunctionCompilationLevelin classMinecraftServer
-
setUUID
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_213199_1_) - Specified by:
isSingleplayerOwnerin classMinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_230512_1_) - Overrides:
getScaledTrackingDistancein classMinecraftServer
-
forceSynchronousWrites
public boolean forceSynchronousWrites()- Overrides:
forceSynchronousWritesin classMinecraftServer
-