public class DedicatedServer extends MinecraftServer implements IServer
Modifier and Type | Field and Description |
---|---|
java.util.List<PendingCommand> |
pendingCommandList |
futureTaskQueue, profiler, serverProxy, serverTime, tickTimeArray, timeOfLastDimensionTick, USER_CACHE_FILE
Constructor and Description |
---|
DedicatedServer(java.io.File p_i49693_1_,
com.mojang.datafixers.DataFixer p_i49693_2_,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_i49693_3_,
com.mojang.authlib.minecraft.MinecraftSessionService p_i49693_4_,
com.mojang.authlib.GameProfileRepository p_i49693_5_,
PlayerProfileCache p_i49693_6_) |
Modifier and Type | Method and Description |
---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport report) |
void |
addServerStatsToSnooper(Snooper playerSnooper) |
boolean |
allowLogging() |
boolean |
allowLoggingRcon() |
boolean |
allowSpawnMonsters() |
boolean |
canStructuresSpawn() |
protected boolean |
convertFiles() |
void |
executePendingCommands() |
boolean |
getAllowNether() |
boolean |
getBooleanProperty(java.lang.String key,
boolean defaultValue) |
EnumDifficulty |
getDifficulty() |
GameType |
getGameType() |
boolean |
getGuiEnabled() |
java.lang.String |
getHostname() |
int |
getIntProperty(java.lang.String key,
int defaultValue) |
long |
getMaxTickTime() |
int |
getMaxWorldSize() |
java.lang.String |
getMotd() |
int |
getNetworkCompressionThreshold() |
int |
getOpPermissionLevel() |
DedicatedPlayerList |
getPlayerList() |
java.lang.String |
getPlugins() |
int |
getPort() |
boolean |
getPublic() |
java.lang.String |
getSettingsFilename() |
int |
getSpawnProtectionSize() |
java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String defaultValue) |
void |
handleConsoleInput(java.lang.String p_195581_1_,
CommandSource p_195581_2_) |
java.lang.String |
handleRConCommand(java.lang.String command) |
boolean |
init() |
boolean |
isBlockProtected(World worldIn,
BlockPos pos,
EntityPlayer playerIn) |
boolean |
isCommandBlockEnabled() |
boolean |
isDedicatedServer() |
boolean |
isHardcore() |
boolean |
isSnooperEnabled() |
java.lang.String |
loadResourcePackSHA() |
void |
saveProperties() |
void |
sendMessage(ITextComponent message) |
void |
setGameType(GameType gameMode) |
void |
setGuiEnabled() |
void |
setPlayerIdleTimeout(int idleTimeout) |
void |
setProperty(java.lang.String key,
java.lang.Object value) |
boolean |
shareToLAN(GameType gameMode,
boolean cheats,
int port) |
boolean |
shouldUseNativeTransport() |
void |
systemExitNow() |
void |
updateTimeLightAndEntities(java.util.function.BooleanSupplier p_71190_1_) |
addScheduledTask, applyServerIconToResponse, callFromMainThread, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, enableProfiling, finalTick, forgeGetWorldMap, func_212369_a, func_212370_w, getActiveAnvilConverter, getAdvancementManager, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSource, getCurrentPlayerCount, getCurrentTask, getCustomBossEvents, getDataDirectory, getDataFixer, getFile, getFolderName, getForceGamemode, getFunctionManager, getGameProfileRepository, getGameRules, getKeyPair, getLootTableManager, getMaxPlayerIdleMinutes, getMaxPlayers, getMinecraftSessionService, getMinecraftVersion, getMOTD, getNetworkSystem, getNetworkTagManager, getOnlinePlayerNames, getPercentDone, getPermissionLevel, getPlayerProfileCache, getPreventProxyConnections, getRecipeManager, getResourceManager, getResourcePackHash, getResourcePacks, getResourcePackUrl, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerStatusResponse, getServerThread, getServerTime, getSnooper, getSpawnRadius, getTickCounter, getTickTime, getTickTime, getUserMessage, getWorld, getWorldIconFile, getWorldName, getWorldScoreboard, initialWorldChunkLoad, initiateShutdown, isAnvilFileSet, isCallingFromMinecraftThread, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, isWhitelistEnabled, isWorldIconSet, kickPlayersNotWhitelisted, loadAllWorlds, loadDataPacks, logDebug, logInfo, logSevere, logWarning, main, refreshStatusNextTick, registerTickable, reload, run, saveAllWorlds, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setCurrentTaskAndPercentDone, setDemo, setDifficultyForAllWorlds, setFolderName, setForceGamemode, setForceWorldUpgrade, setHostname, setKeyPair, setMOTD, setOnlineMode, setPlayerList, setPreventProxyConnections, setResourcePack, setResourcePackFromWorld, setServerOwner, setServerPort, setUserMessage, setWhitelistEnabled, setWorldName, shouldReceiveErrors, shouldReceiveFeedback, startServerThread, stopServer, tick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, getOnlinePlayerNames, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
public final java.util.List<PendingCommand> pendingCommandList
public DedicatedServer(java.io.File p_i49693_1_, com.mojang.datafixers.DataFixer p_i49693_2_, com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_i49693_3_, com.mojang.authlib.minecraft.MinecraftSessionService p_i49693_4_, com.mojang.authlib.GameProfileRepository p_i49693_5_, PlayerProfileCache p_i49693_6_)
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(java.util.function.BooleanSupplier p_71190_1_)
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 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 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 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, EntityPlayer playerIn)
isBlockProtected
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
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()
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 sendMessage(ITextComponent message)
sendMessage
in interface ICommandSource
sendMessage
in class MinecraftServer