public class IntegratedServer extends MinecraftServer
Modifier and Type | Field and Description |
---|---|
private boolean |
isGamePaused |
private LanServerPingThread |
lanServerPing |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Minecraft |
mc |
private java.util.UUID |
playerUuid |
private int |
serverPort |
private WorldSettings |
worldSettings |
chunkStatusListenerFactory, DEMO_WORLD_SETTINGS, serverProxy, serverThread, serverTime, tickTimeArray, USER_CACHE_FILE
DUMMY
Constructor and Description |
---|
IntegratedServer(Minecraft mcIn,
java.lang.String worldName,
java.lang.String worldNameIn,
WorldSettings worldSettingsIn,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authServiceIn,
com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceIn,
com.mojang.authlib.GameProfileRepository profileRepositoryIn,
PlayerProfileCache profileCacheIn,
IChunkStatusListenerFactory listenerFactoryIn) |
Modifier and Type | Method and Description |
---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport report) |
boolean |
allowLogging() |
boolean |
allowLoggingRcon() |
boolean |
canStructuresSpawn() |
void |
fillSnooper(Snooper snooper) |
void |
finalTick(CrashReport report) |
java.util.Optional<java.lang.String> |
func_230045_q_() |
java.io.File |
getDataDirectory() |
Difficulty |
getDifficulty() |
int |
getFunctionLevel() |
GameType |
getGameType() |
int |
getOpPermissionLevel() |
boolean |
getPublic() |
int |
getServerPort() |
boolean |
init() |
void |
initiateShutdown(boolean waitForServer) |
boolean |
isCommandBlockEnabled() |
boolean |
isDedicatedServer() |
boolean |
isHardcore() |
boolean |
isServerOwner(com.mojang.authlib.GameProfile profileIn) |
void |
loadAllWorlds(java.lang.String saveName,
java.lang.String worldNameIn,
long seed,
WorldType type,
com.google.gson.JsonElement generatorOptions) |
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 hasTimeLeft) |
allowSpawnMonsters, applyServerIconToResponse, canCreateBonusChest, canRun, close, convertMapIfNeeded, driveOne, dumpDebugInfo, enableProfiling, forgeGetWorldMap, func_229735_aN_, func_229736_aP_, getActiveAnvilConverter, getAdvancementManager, getAllowNether, getBackgroundExecutor, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSource, getCurrentPlayerCount, getCustomBossEvents, getDataFixer, getExecutionThread, getFile, getFolderName, getForceGamemode, getFrameTimer, getFunctionManager, getGameProfileRepository, getGameRules, getGuiEnabled, getKeyPair, getLootModifierManager, getLootTableManager, getMaxPlayerIdleMinutes, getMaxPlayers, getMaxWorldSize, getMinecraftSessionService, getMinecraftVersion, getMOTD, getNetworkCompressionThreshold, getNetworkSystem, getNetworkTagManager, getOnlinePlayerNames, getPermissionLevel, getPlayerList, getPlayerProfileCache, getPreventProxyConnections, getProfiler, getRecipeManager, getResourceManager, getResourcePackHash, getResourcePacks, getResourcePackUrl, getScoreboard, getServerHostname, getServerModName, getServerOwner, getServerStatusResponse, getServerTime, getSnooper, getSpawnProtectionSize, getSpawnRadius, getTickCounter, getTickTime, getTickTime, getWorld, getWorldIconFile, getWorldName, getWorlds, isAnvilFileSet, isBlockProtected, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isThreadAlive, isWhitelistEnabled, isWorldIconSet, kickPlayersNotWhitelisted, loadDataPacks, loadInitialChunks, loadWorlds, logDebug, logInfo, logSevere, logWarning, main, markWorldsDirty, refreshStatusNextTick, registerTickable, reload, run, run, runScheduledTasks, save, sendMessage, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setDemo, setDifficultyForAllWorlds, setDifficultyLocked, setEraseCache, setForceGamemode, setForceWorldUpgrade, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerIdleTimeout, setPlayerList, setPreventProxyConnections, setResourcePack, setResourcePackFromWorld, setServerId, setServerOwner, setServerPort, setUserMessage, setWhitelistEnabled, setWorldName, shouldDeferTasks, shouldReceiveErrors, shouldReceiveFeedback, startServerThread, systemExitNow, updateTimeLightAndEntities, wrapTask
isTaskRunning
deferTask, drainTasks, driveUntil, dropTasks, enqueue, execute, getName, getQueueSize, isOnExecutionThread, runAsync, runImmediately, supplyAsync, threadYieldPark
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_213141_a, inline
private static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft mc
private final WorldSettings worldSettings
private boolean isGamePaused
private int serverPort
private LanServerPingThread lanServerPing
private java.util.UUID playerUuid
public IntegratedServer(Minecraft mcIn, java.lang.String worldName, java.lang.String worldNameIn, WorldSettings worldSettingsIn, com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authServiceIn, com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceIn, com.mojang.authlib.GameProfileRepository profileRepositoryIn, PlayerProfileCache profileCacheIn, IChunkStatusListenerFactory listenerFactoryIn)
public void loadAllWorlds(java.lang.String saveName, java.lang.String worldNameIn, long seed, WorldType type, com.google.gson.JsonElement generatorOptions)
loadAllWorlds
in class MinecraftServer
public boolean init() throws java.io.IOException
init
in class MinecraftServer
java.io.IOException
public void tick(java.util.function.BooleanSupplier hasTimeLeft)
tick
in class MinecraftServer
public boolean canStructuresSpawn()
canStructuresSpawn
in class MinecraftServer
public GameType getGameType()
getGameType
in class MinecraftServer
public Difficulty getDifficulty()
getDifficulty
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
public boolean allowLoggingRcon()
allowLoggingRcon
in class MinecraftServer
public boolean allowLogging()
public java.io.File getDataDirectory()
getDataDirectory
in class MinecraftServer
public boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public boolean shouldUseNativeTransport()
shouldUseNativeTransport
in class MinecraftServer
public void finalTick(CrashReport report)
finalTick
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport
in class MinecraftServer
public java.util.Optional<java.lang.String> func_230045_q_()
func_230045_q_
in class MinecraftServer
public void fillSnooper(Snooper snooper)
fillSnooper
in interface ISnooperInfo
fillSnooper
in class MinecraftServer
public boolean shareToLAN(GameType gameMode, boolean cheats, int port)
shareToLAN
in class MinecraftServer
public void stopServer()
stopServer
in class MinecraftServer
public void initiateShutdown(boolean waitForServer)
initiateShutdown
in class MinecraftServer
public boolean getPublic()
getPublic
in class MinecraftServer
public int getServerPort()
getServerPort
in class MinecraftServer
public void setGameType(GameType gameMode)
setGameType
in class MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
in class MinecraftServer
public int getFunctionLevel()
getFunctionLevel
in class MinecraftServer
public void setPlayerUuid(java.util.UUID uuid)
public boolean isServerOwner(com.mojang.authlib.GameProfile profileIn)
isServerOwner
in class MinecraftServer