public class DedicatedServer extends MinecraftServer implements IServer
Modifier and Type | Field and Description |
---|---|
static boolean |
allowPlayerLogins |
java.util.List<PendingCommand> |
pendingCommandList |
commandManager, currentTask, futureTaskQueue, percentDone, serverProxy, theProfiler, tickTimeArray, USER_CACHE_FILE, worldServers, worldTickTimes
Constructor and Description |
---|
DedicatedServer(java.io.File anvilFileIn,
DataFixer dataFixerIn,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authServiceIn,
com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceIn,
com.mojang.authlib.GameProfileRepository profileRepoIn,
PlayerProfileCache profileCacheIn) |
addScheduledTask, addServerTypeToSnooper, applyServerIconToResponse, callFromMainThread, canCommandSenderUseCommand, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, createNewCommandManager, enableProfiling, getActiveAnvilConverter, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderEntity, getCurrentPlayerCount, getCurrentTime, getCurrentTimeMillis, getDataDirectory, getDataFixer, getDisplayName, getEntityFromUuid, getEntityWorld, getFile, getFolderName, getForceGamemode, getGameProfileRepository, getGameProfiles, getKeyPair, getMaxPlayerIdleMinutes, getMaxPlayers, getMinecraftSessionService, getMinecraftVersion, getMOTD, getName, getNetworkSystem, getPlayerProfileCache, getPlayerUsageSnooper, getPosition, getPositionVector, getResourcePackHash, getResourcePackUrl, getServer, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getServerStatusResponse, getServerThread, getSpawnRadius, getTabCompletions, getTickCounter, getUserMessage, getWorldIconFile, getWorldName, initialWorldChunkLoad, initiateShutdown, isAnvilFileSet, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isWorldIconSet, loadAllWorlds, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, refreshStatusNextTick, registerTickable, run, saveAllWorlds, sendCommandFeedback, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setCommandStat, setDemo, setDifficultyForAllWorlds, setFolderName, setForceGamemode, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerList, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWorldName, startServerThread, stopServer, tick, worldServerForDimension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllUsernames, getCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
public final java.util.List<PendingCommand> pendingCommandList
public static boolean allowPlayerLogins
public DedicatedServer(java.io.File anvilFileIn, DataFixer dataFixerIn, com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authServiceIn, com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceIn, com.mojang.authlib.GameProfileRepository profileRepoIn, PlayerProfileCache profileCacheIn)
protected boolean startServer() throws java.io.IOException
startServer
in class MinecraftServer
java.io.IOException
public java.lang.String loadResourcePackSHA()
public void setGameType(WorldSettings.GameType gameMode)
setGameType
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
protected void finalTick(CrashReport report)
finalTick
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport
in class MinecraftServer
protected void systemExitNow()
systemExitNow
in class MinecraftServer
public void updateTimeLightAndEntities()
updateTimeLightAndEntities
in class MinecraftServer
public boolean getAllowNether()
getAllowNether
in class MinecraftServer
public boolean allowSpawnMonsters()
allowSpawnMonsters
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 void addPendingCommand(java.lang.String input, ICommandSender sender)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public boolean shouldUseNativeTransport()
shouldUseNativeTransport
in class MinecraftServer
public DedicatedPlayerList getPlayerList()
getPlayerList
in class MinecraftServer
public int getIntProperty(java.lang.String key, int defaultValue)
getIntProperty
in interface IServer
public java.lang.String getStringProperty(java.lang.String key, java.lang.String defaultValue)
getStringProperty
in interface IServer
public boolean getBooleanProperty(java.lang.String key, boolean defaultValue)
public void setProperty(java.lang.String key, java.lang.Object value)
setProperty
in interface IServer
public void saveProperties()
saveProperties
in interface IServer
public java.lang.String getSettingsFilename()
getSettingsFilename
in interface IServer
public java.lang.String getHostname()
getHostname
in interface IServer
public void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled
in class MinecraftServer
public java.lang.String shareToLAN(WorldSettings.GameType type, boolean allowCheats)
shareToLAN
in class MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
in class MinecraftServer
public int getSpawnProtectionSize()
getSpawnProtectionSize
in class MinecraftServer
public boolean isBlockProtected(World worldIn, BlockPos pos, EntityPlayer playerIn)
isBlockProtected
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
in class MinecraftServer
public void setPlayerIdleTimeout(int idleTimeout)
setPlayerIdleTimeout
in class MinecraftServer
public boolean shouldBroadcastRconToOps()
shouldBroadcastRconToOps
in class MinecraftServer
public boolean shouldBroadcastConsoleToOps()
shouldBroadcastConsoleToOps
in class MinecraftServer
public boolean isAnnouncingPlayerAchievements()
isAnnouncingPlayerAchievements
in class MinecraftServer
public int getMaxWorldSize()
getMaxWorldSize
in class MinecraftServer
public int getNetworkCompressionThreshold()
getNetworkCompressionThreshold
in class MinecraftServer
public void addChatMessage(ITextComponent message)
addChatMessage
in interface ICommandSender
addChatMessage
in class MinecraftServer
protected boolean convertFiles() throws java.io.IOException
java.io.IOException
public long getMaxTickTime()
public java.lang.String getPlugins()
getPlugins
in interface IServer
public java.lang.String handleRConCommand(java.lang.String command)
handleRConCommand
in interface IServer