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:
java.lang.AutoCloseable
,java.util.concurrent.Executor
,ICommandSource
,ISnooperInfo
,ITaskExecutor<TickDelayedTask>
public class IntegratedServer extends MinecraftServer
-
-
Field Summary
Fields Modifier and Type Field Description private LanServerPingThread
lanPinger
private static org.apache.logging.log4j.Logger
LOGGER
private Minecraft
minecraft
private boolean
paused
private int
publishedPort
private java.util.UUID
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
Constructors Constructor Description IntegratedServer(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrashReport
fillReport(CrashReport p_71230_1_)
boolean
forceSynchronousWrites()
int
getFunctionCompilationLevel()
java.util.Optional<java.lang.String>
getModdedStatus()
int
getOperatorUserPermissionLevel()
int
getPort()
int
getRateLimitPacketsPerSecond()
int
getScaledTrackingDistance(int p_230512_1_)
java.io.File
getServerDirectory()
void
halt(boolean p_71263_1_)
boolean
initServer()
boolean
isCommandBlockEnabled()
boolean
isDedicatedServer()
boolean
isEpollEnabled()
boolean
isPublished()
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
setUUID(java.util.UUID p_211527_1_)
boolean
shouldInformAdmins()
boolean
shouldRconBroadcast()
void
stopServer()
void
tickServer(java.util.function.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
minecraft
private final Minecraft minecraft
-
paused
private boolean paused
-
publishedPort
private int publishedPort
-
lanPinger
private LanServerPingThread lanPinger
-
uuid
private java.util.UUID uuid
-
-
Constructor Detail
-
IntegratedServer
public IntegratedServer(java.lang.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 Detail
-
initServer
public boolean initServer()
- Specified by:
initServer
in classMinecraftServer
-
tickServer
public void tickServer(java.util.function.BooleanSupplier p_71217_1_)
- Overrides:
tickServer
in classMinecraftServer
-
shouldRconBroadcast
public boolean shouldRconBroadcast()
- Specified by:
shouldRconBroadcast
in classMinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()
-
getServerDirectory
public java.io.File 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
public void onServerCrash(CrashReport p_71228_1_)
- Overrides:
onServerCrash
in classMinecraftServer
-
fillReport
public CrashReport fillReport(CrashReport p_71230_1_)
- Overrides:
fillReport
in classMinecraftServer
-
getModdedStatus
public java.util.Optional<java.lang.String> getModdedStatus()
- Specified by:
getModdedStatus
in classMinecraftServer
-
populateSnooper
public void populateSnooper(Snooper p_70000_1_)
- Specified by:
populateSnooper
in interfaceISnooperInfo
- Overrides:
populateSnooper
in classMinecraftServer
-
publishServer
public boolean publishServer(GameType p_195565_1_, boolean p_195565_2_, int p_195565_3_)
- 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
public void setDefaultGameType(GameType p_71235_1_)
- 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
public void setUUID(java.util.UUID p_211527_1_)
-
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
-
-