public class DedicatedServer extends MinecraftServer implements IServer
| Modifier and Type | Field and Description |
|---|---|
private GameType |
gameType |
private static org.apache.logging.log4j.Logger |
LOGGER |
java.util.List<PendingCommand> |
pendingCommandList |
private RConConsoleSource |
rconConsoleSource |
private QueryThread |
rconQueryThread |
private MainThread |
rconThread |
private static java.util.regex.Pattern |
RESOURCE_PACK_SHA1_PATTERN |
private MinecraftServerGui |
serverGui |
private ServerPropertiesProvider |
settings |
chunkStatusListenerFactory, DEMO_WORLD_SETTINGS, serverProxy, serverThread, serverTime, tickTimeArray, USER_CACHE_FILEDUMMY| Constructor and Description |
|---|
DedicatedServer(java.io.File p_i50720_1_,
ServerPropertiesProvider p_i50720_2_,
com.mojang.datafixers.DataFixer dataFixerIn,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_i50720_4_,
com.mojang.authlib.minecraft.MinecraftSessionService p_i50720_5_,
com.mojang.authlib.GameProfileRepository p_i50720_6_,
PlayerProfileCache p_i50720_7_,
IChunkStatusListenerFactory p_i50720_8_,
java.lang.String p_i50720_9_) |
applyServerIconToResponse, canCreateBonusChest, canRun, close, convertMapIfNeeded, driveOne, dumpDebugInfo, enableProfiling, finalTick, forgeGetWorldMap, func_229735_aN_, func_229736_aP_, getActiveAnvilConverter, getAdvancementManager, getBackgroundExecutor, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSource, getCurrentPlayerCount, getCustomBossEvents, getDataDirectory, getDataFixer, getExecutionThread, getFile, getFolderName, getForceGamemode, getFrameTimer, getFunctionManager, getGameProfileRepository, getGameRules, getKeyPair, getLootModifierManager, getLootTableManager, getMaxPlayerIdleMinutes, getMaxPlayers, getMinecraftSessionService, getMinecraftVersion, getMOTD, getNetworkSystem, getNetworkTagManager, getOnlinePlayerNames, getPermissionLevel, getPlayerProfileCache, getPreventProxyConnections, getProfiler, getRecipeManager, getResourceManager, getResourcePackHash, getResourcePacks, getResourcePackUrl, getScoreboard, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerStatusResponse, getServerTime, getSnooper, getSpawnRadius, getTickCounter, getTickTime, getTickTime, getWorld, getWorldIconFile, getWorldName, getWorlds, initiateShutdown, isAnvilFileSet, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isThreadAlive, isWhitelistEnabled, isWorldIconSet, kickPlayersNotWhitelisted, loadAllWorlds, loadDataPacks, loadInitialChunks, loadWorlds, logDebug, logInfo, logSevere, logWarning, main, markWorldsDirty, refreshStatusNextTick, registerTickable, reload, run, run, runScheduledTasks, save, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setDemo, setDifficultyForAllWorlds, setDifficultyLocked, setEraseCache, setForceGamemode, setForceWorldUpgrade, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerList, setPreventProxyConnections, setResourcePack, setResourcePackFromWorld, setServerId, setServerOwner, setServerPort, setUserMessage, setWhitelistEnabled, setWorldName, shouldDeferTasks, shouldReceiveErrors, shouldReceiveFeedback, startServerThread, tick, wrapTaskisTaskRunningdeferTask, drainTasks, driveUntil, dropTasks, enqueue, execute, getName, getQueueSize, isOnExecutionThread, runAsync, runImmediately, supplyAsync, threadYieldParkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, getOnlinePlayerNames, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarningfunc_213141_a, inlineprivate 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 QueryThread rconQueryThread
private final RConConsoleSource rconConsoleSource
private MainThread rconThread
private final ServerPropertiesProvider settings
private GameType gameType
@Nullable private MinecraftServerGui serverGui
public DedicatedServer(java.io.File p_i50720_1_,
ServerPropertiesProvider p_i50720_2_,
com.mojang.datafixers.DataFixer dataFixerIn,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_i50720_4_,
com.mojang.authlib.minecraft.MinecraftSessionService p_i50720_5_,
com.mojang.authlib.GameProfileRepository p_i50720_6_,
PlayerProfileCache p_i50720_7_,
IChunkStatusListenerFactory p_i50720_8_,
java.lang.String p_i50720_9_)
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 ServerProperties getServerProperties()
getServerProperties in interface IServerpublic boolean canStructuresSpawn()
canStructuresSpawn in class MinecraftServerpublic GameType getGameType()
getGameType in class MinecraftServerpublic Difficulty getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport in class MinecraftServerpublic java.util.Optional<java.lang.String> func_230045_q_()
func_230045_q_ in class MinecraftServerpublic void systemExitNow()
systemExitNow in class MinecraftServerpublic void updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft)
updateTimeLightAndEntities in class MinecraftServerpublic boolean getAllowNether()
getAllowNether in class MinecraftServerpublic boolean allowSpawnMonsters()
allowSpawnMonsters in class MinecraftServerpublic void fillSnooper(Snooper snooper)
fillSnooper in interface ISnooperInfofillSnooper in class MinecraftServerpublic void handleConsoleInput(java.lang.String p_195581_1_,
CommandSource p_195581_2_)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic boolean shouldUseNativeTransport()
shouldUseNativeTransport in class MinecraftServerpublic DedicatedPlayerList getPlayerList()
getPlayerList in class MinecraftServerpublic boolean getPublic()
getPublic in class MinecraftServerpublic java.lang.String getHostname()
getHostname in interface IServerpublic void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled in class MinecraftServerpublic boolean shareToLAN(GameType gameMode, boolean cheats, int port)
shareToLAN in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int getSpawnProtectionSize()
getSpawnProtectionSize in class MinecraftServerpublic boolean isBlockProtected(World worldIn, BlockPos pos, PlayerEntity playerIn)
isBlockProtected in class MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel in class MinecraftServerpublic int getFunctionLevel()
getFunctionLevel in class MinecraftServerpublic void setPlayerIdleTimeout(int idleTimeout)
setPlayerIdleTimeout in class MinecraftServerpublic boolean allowLoggingRcon()
allowLoggingRcon in class MinecraftServerpublic boolean allowLogging()
allowLogging in interface ICommandSourcepublic int getMaxWorldSize()
getMaxWorldSize in class MinecraftServerpublic int getNetworkCompressionThreshold()
getNetworkCompressionThreshold in class MinecraftServerprotected boolean convertFiles()
private 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 IServerpublic void func_213223_o(boolean p_213223_1_)
public void stopServer()
stopServer in class MinecraftServerpublic boolean isServerOwner(com.mojang.authlib.GameProfile profileIn)
isServerOwner in class MinecraftServerpublic void sendMessage(ITextComponent message)
sendMessage in interface ICommandSourcesendMessage in class MinecraftServer