public class IntegratedServer extends MinecraftServer
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isGamePaused |
private boolean |
isPublic |
private ThreadLanServerPing |
lanServerPing |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Minecraft |
mc |
private WorldSettings |
worldSettings |
commandManager, currentTask, currentTime, futureTaskQueue, percentDone, profiler, serverProxy, tickTimeArray, USER_CACHE_FILE, worlds, worldTickTimes| Constructor and Description |
|---|
IntegratedServer(Minecraft clientIn,
java.lang.String folderNameIn,
java.lang.String worldNameIn,
WorldSettings worldSettingsIn,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authServiceIn,
com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceIn,
com.mojang.authlib.GameProfileRepository profileRepoIn,
PlayerProfileCache profileCacheIn) |
addScheduledTask, addServerTypeToSnooper, allowSpawnMonsters, applyServerIconToResponse, callFromMainThread, canCreateBonusChest, canUseCommand, clearCurrentTask, convertMapIfNeeded, enableProfiling, getActiveAnvilConverter, getAdvancementManager, getAllowNether, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCurrentPlayerCount, getCurrentTime, getCurrentTimeMillis, getDataFixer, getEntityFromUuid, getEntityWorld, getFile, getFolderName, getForceGamemode, getFunctionManager, getGameProfileRepository, getGuiEnabled, getKeyPair, getMaxPlayerIdleMinutes, getMaxPlayers, getMaxWorldSize, getMinecraftSessionService, getMinecraftVersion, getMOTD, getName, getNetworkCompressionThreshold, getNetworkSystem, getOnlinePlayerNames, getOnlinePlayerProfiles, getPlayerList, getPlayerProfileCache, getPlayerUsageSnooper, getPreventProxyConnections, getResourcePackHash, getResourcePackUrl, getServer, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getServerStatusResponse, getServerThread, getSpawnProtectionSize, getSpawnRadius, getTabCompletions, getTickCounter, getUserMessage, getWorld, getWorldIconFile, getWorldName, initialWorldChunkLoad, isAnvilFileSet, isBlockProtected, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isWorldIconSet, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, refreshStatusNextTick, registerTickable, reload, run, sendCommandFeedback, sendMessage, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setDemo, setFolderName, setForceGamemode, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerIdleTimeout, setPlayerList, setPreventProxyConnections, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWorldName, startServerThread, systemExitNow, updateTimeLightAndEntitiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandSenderEntity, getDisplayName, getPosition, getPositionVector, setCommandStatprivate static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft mc
private final WorldSettings worldSettings
private boolean isGamePaused
private boolean isPublic
private ThreadLanServerPing lanServerPing
public IntegratedServer(Minecraft clientIn, java.lang.String folderNameIn, java.lang.String worldNameIn, WorldSettings worldSettingsIn, com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authServiceIn, com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceIn, com.mojang.authlib.GameProfileRepository profileRepoIn, PlayerProfileCache profileCacheIn)
public ServerCommandManager createCommandManager()
createCommandManager in class MinecraftServerpublic void loadAllWorlds(java.lang.String saveName,
java.lang.String worldNameIn,
long seed,
WorldType type,
java.lang.String generatorOptions)
loadAllWorlds in class MinecraftServerpublic boolean init()
throws java.io.IOException
init in class MinecraftServerjava.io.IOExceptionpublic void tick()
tick in class MinecraftServerpublic boolean canStructuresSpawn()
canStructuresSpawn in class MinecraftServerpublic GameType getGameType()
getGameType in class MinecraftServerpublic EnumDifficulty getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic boolean shouldBroadcastRconToOps()
shouldBroadcastRconToOps in class MinecraftServerpublic boolean shouldBroadcastConsoleToOps()
shouldBroadcastConsoleToOps in class MinecraftServerpublic void saveAllWorlds(boolean isSilent)
saveAllWorlds in class MinecraftServerpublic java.io.File getDataDirectory()
getDataDirectory in class MinecraftServerpublic boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic boolean shouldUseNativeTransport()
shouldUseNativeTransport in class MinecraftServerpublic void finalTick(CrashReport report)
finalTick in class MinecraftServerpublic CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport in class MinecraftServerpublic void setDifficultyForAllWorlds(EnumDifficulty difficulty)
setDifficultyForAllWorlds in class MinecraftServerpublic void addServerStatsToSnooper(Snooper playerSnooper)
addServerStatsToSnooper in interface ISnooperInfoaddServerStatsToSnooper in class MinecraftServerpublic boolean isSnooperEnabled()
isSnooperEnabled in interface ISnooperInfoisSnooperEnabled in class MinecraftServerpublic java.lang.String shareToLAN(GameType type, boolean allowCheats)
shareToLAN in class MinecraftServerpublic void stopServer()
stopServer in class MinecraftServerpublic void initiateShutdown()
initiateShutdown in class MinecraftServerpublic boolean getPublic()
public void setGameType(GameType gameMode)
setGameType in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel in class MinecraftServer