public class DedicatedServer extends MinecraftServer implements IServer
Modifier and Type | Field and Description |
---|---|
static boolean |
allowPlayerLogins |
private boolean |
canSpawnStructures |
private ServerEula |
eula |
private GameType |
gameType |
private boolean |
guiIsEnabled |
private static org.apache.logging.log4j.Logger |
LOGGER |
java.util.List<PendingCommand> |
pendingCommandList |
private RConConsoleSource |
rconConsoleSource |
private RConThreadQuery |
rconQueryThread |
private RConThreadMain |
rconThread |
private static java.util.regex.Pattern |
RESOURCE_PACK_SHA1_PATTERN |
private PropertyManager |
settings |
commandManager, currentTask, currentTime, futureTaskQueue, percentDone, profiler, serverProxy, tickTimeArray, USER_CACHE_FILE, worlds, 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, canCreateBonusChest, canUseCommand, clearCurrentTask, convertMapIfNeeded, createCommandManager, enableProfiling, finalTick, getActiveAnvilConverter, getAdvancementManager, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCurrentPlayerCount, getCurrentTime, getCurrentTimeMillis, getDataDirectory, getDataFixer, getEntityFromUuid, getEntityWorld, getFile, getFolderName, getForceGamemode, getFunctionManager, getGameProfileRepository, getKeyPair, getMaxPlayerIdleMinutes, getMaxPlayers, getMinecraftSessionService, getMinecraftVersion, getMOTD, getName, getNetworkSystem, getOnlinePlayerNames, getOnlinePlayerProfiles, getPlayerProfileCache, getPlayerUsageSnooper, getPreventProxyConnections, getResourcePackHash, getResourcePackUrl, getServer, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getServerStatusResponse, getServerThread, getSpawnRadius, getTabCompletions, getTickCounter, getUserMessage, getWorld, getWorldIconFile, getWorldName, initialWorldChunkLoad, initiateShutdown, isAnvilFileSet, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isWorldIconSet, loadAllWorlds, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, refreshStatusNextTick, registerTickable, reload, run, saveAllWorlds, sendCommandFeedback, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setDemo, setDifficultyForAllWorlds, setFolderName, setForceGamemode, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerList, setPreventProxyConnections, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWorldName, startServerThread, stopServer, tick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, getOnlinePlayerNames, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
getCommandSenderEntity, getDisplayName, getPosition, getPositionVector, setCommandStat
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.regex.Pattern RESOURCE_PACK_SHA1_PATTERN
public final java.util.List<PendingCommand> pendingCommandList
private RConThreadQuery rconQueryThread
private final RConConsoleSource rconConsoleSource
private RConThreadMain rconThread
private PropertyManager settings
private ServerEula eula
private boolean canSpawnStructures
private GameType gameType
private boolean guiIsEnabled
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)
public boolean init() throws java.io.IOException
init
in class MinecraftServer
java.io.IOException
public java.lang.String loadResourcePackSHA()
public void setGameType(GameType gameMode)
setGameType
in class MinecraftServer
public boolean canStructuresSpawn()
canStructuresSpawn
in class MinecraftServer
public GameType getGameType()
getGameType
in class MinecraftServer
public EnumDifficulty getDifficulty()
getDifficulty
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport
in class MinecraftServer
public 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(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 int getMaxWorldSize()
getMaxWorldSize
in class MinecraftServer
public int getNetworkCompressionThreshold()
getNetworkCompressionThreshold
in class MinecraftServer
public void sendMessage(ITextComponent message)
sendMessage
in interface ICommandSender
sendMessage
in class MinecraftServer
protected boolean convertFiles() throws java.io.IOException
java.io.IOException
private void sleepFiveSeconds()
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