public class DedicatedServer extends MinecraftServer implements IServer
Modifier and Type | Field and Description |
---|---|
static boolean |
allowPlayerLogins |
java.util.List |
pendingCommandList |
currentTask, futureTaskQueue, percentDone, serverProxy, theProfiler, tickTimeArray, USER_CACHE_FILE, worldServers, worldTickTimes
Constructor and Description |
---|
DedicatedServer(java.io.File workDir) |
addChatMessage, addScheduledTask, addServerTypeToSnooper, callFromMainThread, canCreateBonusChest, canUseCommand, clearCurrentTask, convertMapIfNeeded, createNewCommandManager, deleteWorldAndStopServer, enableProfiling, func_175578_N, getActiveAnvilConverter, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderEntity, getCurrentPlayerCount, getCurrentTime, getCurrentTimeMillis, getDataDirectory, getDisplayName, getEntityFromUuid, getEntityWorld, getFile, getFolderName, getForceGamemode, getGameProfileRepository, getGameProfiles, getHostname, getKeyPair, getMaxPlayerIdleMinutes, getMaxPlayers, getMinecraftSessionService, getMinecraftVersion, getMotd, getMOTD, getName, getNetworkSystem, getPlayerProfileCache, getPlayerUsageSnooper, getPlugins, getPort, getPosition, getPositionVector, getResourcePackHash, getResourcePackUrl, getServer, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getServerStatusResponse, getServerThread, getTabCompletions, getTickCounter, getUserMessage, getWorldName, handleRConCommand, initialWorldChunkLoad, initiateShutdown, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, loadAllWorlds, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, refreshStatusNextTick, registerTickable, run, saveAllWorlds, sendCommandFeedback, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setCommandStat, setConfigManager, setDemo, setDifficultyForAllWorlds, setFolderName, setForceGamemode, setHostname, setInstance, setKeyPair, setMOTD, setOnlineMode, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWorldName, startServerThread, stopServer, tick, worldServerForDimension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllUsernames, getCurrentPlayerCount, getFolderName, getHostname, getMaxPlayers, getMinecraftVersion, getMotd, getPlugins, getPort, handleRConCommand, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
public final java.util.List pendingCommandList
public static boolean allowPlayerLogins
protected boolean startServer() throws java.io.IOException
startServer
in class MinecraftServer
java.io.IOException
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(PlayerUsageSnooper playerSnooper)
addServerStatsToSnooper
in interface IPlayerUsage
addServerStatsToSnooper
in class MinecraftServer
public boolean isSnooperEnabled()
isSnooperEnabled
in interface IPlayerUsage
isSnooperEnabled
in class MinecraftServer
public void addPendingCommand(java.lang.String input, ICommandSender sender)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public DedicatedPlayerList func_180508_aN()
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 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 isAnnouncingPlayerAchievements()
isAnnouncingPlayerAchievements
in class MinecraftServer
public int getMaxWorldSize()
getMaxWorldSize
in class MinecraftServer
public int getNetworkCompressionTreshold()
getNetworkCompressionTreshold
in class MinecraftServer
protected boolean convertFiles() throws java.io.IOException
java.io.IOException
public long getMaxTickTime()
public ServerConfigurationManager getConfigurationManager()
getConfigurationManager
in class MinecraftServer