public class IntegratedServer extends MinecraftServer
commandManager, currentTask, futureTaskQueue, percentDone, serverProxy, theProfiler, tickTimeArray, USER_CACHE_FILE, worldServers, 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) |
addChatMessage, addScheduledTask, addServerTypeToSnooper, allowSpawnMonsters, applyServerIconToResponse, callFromMainThread, canCommandSenderUseCommand, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, enableProfiling, getActiveAnvilConverter, getAllowNether, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderEntity, getCurrentPlayerCount, getCurrentTime, getCurrentTimeMillis, getDataFixer, getDisplayName, getEntityFromUuid, getEntityWorld, getFile, getFolderName, getForceGamemode, getGameProfileRepository, getGameProfiles, getGuiEnabled, getKeyPair, getMaxPlayerIdleMinutes, getMaxPlayers, getMaxWorldSize, getMinecraftSessionService, getMinecraftVersion, getMOTD, getName, getNetworkCompressionThreshold, getNetworkSystem, getPlayerList, getPlayerProfileCache, getPlayerUsageSnooper, getPosition, getPositionVector, getResourcePackHash, getResourcePackUrl, getServer, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getServerStatusResponse, getServerThread, getSpawnProtectionSize, getSpawnRadius, getTabCompletions, getTickCounter, getUserMessage, getWorldIconFile, getWorldName, initialWorldChunkLoad, isAnnouncingPlayerAchievements, isAnvilFileSet, isBlockProtected, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isWorldIconSet, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, refreshStatusNextTick, registerTickable, run, sendCommandFeedback, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setCommandStat, setDemo, setFolderName, setForceGamemode, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerIdleTimeout, setPlayerList, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWorldName, startServerThread, systemExitNow, updateTimeLightAndEntities, worldServerForDimension
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)
protected ServerCommandManager createNewCommandManager()
createNewCommandManager
in class MinecraftServer
protected void loadAllWorlds(java.lang.String saveName, java.lang.String worldNameIn, long seed, WorldType type, java.lang.String generatorOptions)
loadAllWorlds
in class MinecraftServer
protected boolean startServer() throws java.io.IOException
startServer
in class MinecraftServer
java.io.IOException
public void tick()
tick
in class MinecraftServer
public boolean canStructuresSpawn()
canStructuresSpawn
in class MinecraftServer
public WorldSettings.GameType getGameType()
getGameType
in class MinecraftServer
public EnumDifficulty getDifficulty()
getDifficulty
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
public boolean shouldBroadcastRconToOps()
shouldBroadcastRconToOps
in class MinecraftServer
public boolean shouldBroadcastConsoleToOps()
shouldBroadcastConsoleToOps
in class MinecraftServer
public void saveAllWorlds(boolean dontLog)
saveAllWorlds
in class MinecraftServer
public java.io.File getDataDirectory()
getDataDirectory
in class MinecraftServer
public boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public boolean shouldUseNativeTransport()
shouldUseNativeTransport
in class MinecraftServer
protected void finalTick(CrashReport report)
finalTick
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport
in class MinecraftServer
public void setDifficultyForAllWorlds(EnumDifficulty difficulty)
setDifficultyForAllWorlds
in class MinecraftServer
public void addServerStatsToSnooper(Snooper playerSnooper)
addServerStatsToSnooper
in interface ISnooperInfo
addServerStatsToSnooper
in class MinecraftServer
public boolean isSnooperEnabled()
isSnooperEnabled
in interface ISnooperInfo
isSnooperEnabled
in class MinecraftServer
public java.lang.String shareToLAN(WorldSettings.GameType type, boolean allowCheats)
shareToLAN
in class MinecraftServer
public void stopServer()
stopServer
in class MinecraftServer
public void initiateShutdown()
initiateShutdown
in class MinecraftServer
public boolean getPublic()
public void setGameType(WorldSettings.GameType gameMode)
setGameType
in class MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
in class MinecraftServer
public void reloadLootTables()