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>,SnooperPopulator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intprivate LanServerPingerprivate static org.apache.logging.log4j.Loggerprivate Minecraftprivate booleanprivate GameTypeprivate intprivate UUIDFields inherited from class net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, DEMO_SETTINGS, LEVEL_STORAGE_PROTOCOL, LEVEL_STORAGE_SCHEMA, MAP_RESOURCE_FILE, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, registryHolder, START_CHUNK_RADIUS, storageSource, tickTimes, USERID_CACHE_FILE, worldDataFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionIntegratedServer(Thread p_120022_, Minecraft p_120023_, RegistryAccess.RegistryHolder p_120024_, LevelStorageSource.LevelStorageAccess p_120025_, PackRepository p_120026_, ServerResources p_120027_, WorldData p_120028_, com.mojang.authlib.minecraft.MinecraftSessionService p_120029_, com.mojang.authlib.GameProfileRepository p_120030_, GameProfileCache p_120031_, ChunkProgressListenerFactory p_120032_) -
Method Summary
Modifier and TypeMethodDescriptionfillServerSystemReport(SystemReport p_174970_)booleanintintintgetPort()intintgetScaledTrackingDistance(int p_120056_)voidhalt(boolean p_120053_)booleanbooleanbooleanbooleanbooleanbooleanisSingleplayerOwner(com.mojang.authlib.GameProfile p_120045_)booleanvoidonServerCrash(CrashReport p_120051_)voidpopulateSnooper(Snooper p_120037_)booleanpublishServer(GameType p_120041_, boolean p_120042_, int p_120043_)voidsetDefaultGameType(GameType p_120039_)voidbooleanbooleanvoidprivate voidvoidtickServer(BooleanSupplier p_120049_)Methods inherited from class net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, areNpcsEnabled, close, configurePackRepository, convertFromRegionFormatIfNeeded, createCommandSourceStack, createGameModeForPlayer, createLevels, createTextFilterForPlayer, detectBundledResources, doRunTask, dumpServerProperties, 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, getSnooper, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStructureManager, getTags, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, hasGui, initializeKeyPair, invalidateStatus, isDemo, isEnforceWhitelist, isFlightAllowed, isHardcore, isNetherEnabled, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningAnimals, isSpawningMonsters, isStopped, isTimeProfilerRunning, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, markWorldsDirty, onServerExit, overworld, pollTask, populateSnooperInitial, registryAccess, reloadResources, repliesToStatus, runServer, saveAllChunks, 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, wrapRunnableMethods inherited from class net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTaskMethods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, 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.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraft.util.thread.ProcessorHandle
ask, askEither
-
Field Details
-
CLIENT_VIEW_DISTANCE_OFFSET
public static final int CLIENT_VIEW_DISTANCE_OFFSET- See Also:
- Constant Field Values
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
minecraft
-
paused
private boolean paused -
publishedPort
private int publishedPort -
publishedGameType
-
lanPinger
-
uuid
-
-
Constructor Details
-
IntegratedServer
public IntegratedServer(Thread p_120022_, Minecraft p_120023_, RegistryAccess.RegistryHolder p_120024_, LevelStorageSource.LevelStorageAccess p_120025_, PackRepository p_120026_, ServerResources p_120027_, WorldData p_120028_, com.mojang.authlib.minecraft.MinecraftSessionService p_120029_, com.mojang.authlib.GameProfileRepository p_120030_, GameProfileCache p_120031_, ChunkProgressListenerFactory p_120032_)
-
-
Method Details
-
initServer
public boolean initServer()- Specified by:
initServerin classMinecraftServer
-
tickServer
- Overrides:
tickServerin classMinecraftServer
-
tickPaused
private void tickPaused() -
shouldRconBroadcast
public boolean shouldRconBroadcast()- Specified by:
shouldRconBroadcastin classMinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdminsin interfaceCommandSource- Specified by:
shouldInformAdminsin classMinecraftServer
-
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
-
fillServerSystemReport
- Specified by:
fillServerSystemReportin classMinecraftServer
-
getModdedStatus
- Specified by:
getModdedStatusin classMinecraftServer
-
populateSnooper
- Specified by:
populateSnooperin interfaceSnooperPopulator- Overrides:
populateSnooperin classMinecraftServer
-
isSnooperEnabled
public boolean isSnooperEnabled()- Specified by:
isSnooperEnabledin interfaceSnooperPopulator- Overrides:
isSnooperEnabledin classMinecraftServer
-
publishServer
- Overrides:
publishServerin classMinecraftServer
-
stopServer
public void stopServer()- Overrides:
stopServerin classMinecraftServer
-
halt
public void halt(boolean p_120053_)- 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_120045_)- Specified by:
isSingleplayerOwnerin classMinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_120056_)- Overrides:
getScaledTrackingDistancein classMinecraftServer
-
forceSynchronousWrites
public boolean forceSynchronousWrites()- Overrides:
forceSynchronousWritesin classMinecraftServer
-
getForcedGameType
- Overrides:
getForcedGameTypein classMinecraftServer
-