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_FILE
DUMMY
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, wrapTask
isTaskRunning
deferTask, drainTasks, driveUntil, dropTasks, enqueue, execute, getName, getQueueSize, isOnExecutionThread, runAsync, runImmediately, supplyAsync, threadYieldPark
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, getOnlinePlayerNames, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
func_213141_a, inline
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 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 MinecraftServer
java.io.IOException
public java.lang.String loadResourcePackSHA()
public void setGameType(GameType gameMode)
setGameType
in class MinecraftServer
public ServerProperties getServerProperties()
getServerProperties
in interface IServer
public boolean canStructuresSpawn()
canStructuresSpawn
in class MinecraftServer
public GameType getGameType()
getGameType
in class MinecraftServer
public Difficulty getDifficulty()
getDifficulty
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport
in class MinecraftServer
public java.util.Optional<java.lang.String> func_230045_q_()
func_230045_q_
in class MinecraftServer
public void systemExitNow()
systemExitNow
in class MinecraftServer
public void updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft)
updateTimeLightAndEntities
in class MinecraftServer
public boolean getAllowNether()
getAllowNether
in class MinecraftServer
public boolean allowSpawnMonsters()
allowSpawnMonsters
in class MinecraftServer
public void fillSnooper(Snooper snooper)
fillSnooper
in interface ISnooperInfo
fillSnooper
in class MinecraftServer
public void handleConsoleInput(java.lang.String p_195581_1_, CommandSource p_195581_2_)
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 boolean getPublic()
getPublic
in class MinecraftServer
public java.lang.String getHostname()
getHostname
in interface IServer
public void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled
in class MinecraftServer
public boolean shareToLAN(GameType gameMode, boolean cheats, int port)
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, PlayerEntity playerIn)
isBlockProtected
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
in class MinecraftServer
public int getFunctionLevel()
getFunctionLevel
in class MinecraftServer
public void setPlayerIdleTimeout(int idleTimeout)
setPlayerIdleTimeout
in class MinecraftServer
public boolean allowLoggingRcon()
allowLoggingRcon
in class MinecraftServer
public boolean allowLogging()
allowLogging
in interface ICommandSource
public int getMaxWorldSize()
getMaxWorldSize
in class MinecraftServer
public int getNetworkCompressionThreshold()
getNetworkCompressionThreshold
in class MinecraftServer
protected boolean convertFiles()
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
public void func_213223_o(boolean p_213223_1_)
public void stopServer()
stopServer
in class MinecraftServer
public boolean isServerOwner(com.mojang.authlib.GameProfile profileIn)
isServerOwner
in class MinecraftServer
public void sendMessage(ITextComponent message)
sendMessage
in interface ICommandSource
sendMessage
in class MinecraftServer