public class IntegratedServer extends MinecraftServer
futureTaskQueue, profiler, serverProxy, serverTime, tickTimeArray, timeOfLastDimensionTick, USER_CACHE_FILE| 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) |
| Modifier and Type | Method and Description |
|---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport report) |
void |
addServerStatsToSnooper(Snooper playerSnooper) |
boolean |
allowLogging() |
boolean |
allowLoggingRcon() |
boolean |
canStructuresSpawn() |
void |
finalTick(CrashReport report) |
java.io.File |
getDataDirectory() |
EnumDifficulty |
getDifficulty() |
GameType |
getGameType() |
int |
getOpPermissionLevel() |
boolean |
getPublic() |
int |
getServerPort() |
boolean |
init() |
void |
initiateShutdown() |
boolean |
isCommandBlockEnabled() |
boolean |
isDedicatedServer() |
boolean |
isHardcore() |
boolean |
isSnooperEnabled() |
void |
loadAllWorlds(java.lang.String saveName,
java.lang.String worldNameIn,
long seed,
WorldType type,
com.google.gson.JsonElement generatorOptions) |
void |
setDifficultyForAllWorlds(EnumDifficulty difficulty) |
void |
setGameType(GameType gameMode) |
void |
setPlayerUuid(java.util.UUID uuid) |
boolean |
shareToLAN(GameType gameMode,
boolean cheats,
int port) |
boolean |
shouldUseNativeTransport() |
void |
stopServer() |
void |
tick(java.util.function.BooleanSupplier p_71217_1_) |
addScheduledTask, allowSpawnMonsters, applyServerIconToResponse, callFromMainThread, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, enableProfiling, forgeGetWorldMap, func_212369_a, func_212370_w, getActiveAnvilConverter, getAdvancementManager, getAllowNether, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSource, getCurrentPlayerCount, getCurrentTask, getCustomBossEvents, getDataFixer, getFile, getFolderName, getForceGamemode, getFunctionManager, getGameProfileRepository, getGameRules, getGuiEnabled, getKeyPair, getLootTableManager, getMaxPlayerIdleMinutes, getMaxPlayers, getMaxWorldSize, getMinecraftSessionService, getMinecraftVersion, getMOTD, getNetworkCompressionThreshold, getNetworkSystem, getNetworkTagManager, getOnlinePlayerNames, getPercentDone, getPermissionLevel, getPlayerList, getPlayerProfileCache, getPreventProxyConnections, getRecipeManager, getResourceManager, getResourcePackHash, getResourcePacks, getResourcePackUrl, getServerHostname, getServerModName, getServerOwner, getServerStatusResponse, getServerThread, getServerTime, getSnooper, getSpawnProtectionSize, getSpawnRadius, getTickCounter, getTickTime, getTickTime, getUserMessage, getWorld, getWorldIconFile, getWorldName, getWorldScoreboard, initialWorldChunkLoad, isAnvilFileSet, isBlockProtected, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isWhitelistEnabled, isWorldIconSet, kickPlayersNotWhitelisted, loadDataPacks, logDebug, logInfo, logSevere, logWarning, main, refreshStatusNextTick, registerTickable, reload, run, saveAllWorlds, sendMessage, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setCurrentTaskAndPercentDone, setDemo, setFolderName, setForceGamemode, setForceWorldUpgrade, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerIdleTimeout, setPlayerList, setPreventProxyConnections, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWhitelistEnabled, setWorldName, shouldReceiveErrors, shouldReceiveFeedback, startServerThread, systemExitNow, updateTimeLightAndEntitiespublic 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 void loadAllWorlds(java.lang.String saveName,
java.lang.String worldNameIn,
long seed,
WorldType type,
com.google.gson.JsonElement generatorOptions)
loadAllWorlds in class MinecraftServerpublic boolean init()
throws java.io.IOException
init in class MinecraftServerjava.io.IOExceptionpublic void tick(java.util.function.BooleanSupplier p_71217_1_)
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 allowLoggingRcon()
allowLoggingRcon in class MinecraftServerpublic boolean allowLogging()
public 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 class MinecraftServerpublic boolean shareToLAN(GameType gameMode, boolean cheats, int port)
shareToLAN in class MinecraftServerpublic void stopServer()
stopServer in class MinecraftServerpublic void initiateShutdown()
initiateShutdown in class MinecraftServerpublic boolean getPublic()
getPublic in class MinecraftServerpublic int getServerPort()
getServerPort in class MinecraftServerpublic void setGameType(GameType gameMode)
setGameType in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel in class MinecraftServerpublic void setPlayerUuid(java.util.UUID uuid)