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, tickclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, getOnlinePlayerNames, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarninggetCommandSenderEntity, getDisplayName, getPosition, getPositionVector, setCommandStatprivate 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 MinecraftServerjava.io.IOExceptionpublic java.lang.String loadResourcePackSHA()
public void setGameType(GameType gameMode)
setGameType in class MinecraftServerpublic boolean canStructuresSpawn()
canStructuresSpawn in class MinecraftServerpublic GameType getGameType()
getGameType in class MinecraftServerpublic EnumDifficulty getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport in class MinecraftServerpublic void systemExitNow()
systemExitNow in class MinecraftServerpublic void updateTimeLightAndEntities()
updateTimeLightAndEntities in class MinecraftServerpublic boolean getAllowNether()
getAllowNether in class MinecraftServerpublic boolean allowSpawnMonsters()
allowSpawnMonsters in class MinecraftServerpublic void addServerStatsToSnooper(Snooper playerSnooper)
addServerStatsToSnooper in interface ISnooperInfoaddServerStatsToSnooper in class MinecraftServerpublic boolean isSnooperEnabled()
isSnooperEnabled in interface ISnooperInfoisSnooperEnabled in class MinecraftServerpublic void addPendingCommand(java.lang.String input,
ICommandSender sender)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic boolean shouldUseNativeTransport()
shouldUseNativeTransport in class MinecraftServerpublic DedicatedPlayerList getPlayerList()
getPlayerList in class MinecraftServerpublic int getIntProperty(java.lang.String key,
int defaultValue)
getIntProperty in interface IServerpublic java.lang.String getStringProperty(java.lang.String key,
java.lang.String defaultValue)
getStringProperty in interface IServerpublic boolean getBooleanProperty(java.lang.String key,
boolean defaultValue)
public void setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface IServerpublic void saveProperties()
saveProperties in interface IServerpublic java.lang.String getSettingsFilename()
getSettingsFilename in interface IServerpublic java.lang.String getHostname()
getHostname in interface IServerpublic void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled in class MinecraftServerpublic java.lang.String shareToLAN(GameType type, boolean allowCheats)
shareToLAN in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int getSpawnProtectionSize()
getSpawnProtectionSize in class MinecraftServerpublic boolean isBlockProtected(World worldIn, BlockPos pos, EntityPlayer playerIn)
isBlockProtected in class MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel in class MinecraftServerpublic void setPlayerIdleTimeout(int idleTimeout)
setPlayerIdleTimeout in class MinecraftServerpublic boolean shouldBroadcastRconToOps()
shouldBroadcastRconToOps in class MinecraftServerpublic boolean shouldBroadcastConsoleToOps()
shouldBroadcastConsoleToOps in class MinecraftServerpublic int getMaxWorldSize()
getMaxWorldSize in class MinecraftServerpublic int getNetworkCompressionThreshold()
getNetworkCompressionThreshold in class MinecraftServerpublic void sendMessage(ITextComponent message)
sendMessage in interface ICommandSendersendMessage in class MinecraftServerprotected boolean convertFiles()
throws java.io.IOException
java.io.IOExceptionprivate void sleepFiveSeconds()
public long getMaxTickTime()
public java.lang.String getPlugins()
getPlugins in interface IServerpublic java.lang.String handleRConCommand(java.lang.String command)
handleRConCommand in interface IServer