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, tickclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentPlayerCount, getFolderName, getMaxPlayers, getMinecraftVersion, getOnlinePlayerNames, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarningpublic 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 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(java.util.function.BooleanSupplier p_71190_1_)
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 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 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 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, EntityPlayer playerIn)
isBlockProtected in class MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel 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()
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 sendMessage(ITextComponent message)
sendMessage in interface ICommandSourcesendMessage in class MinecraftServer