public class DedicatedServer extends MinecraftServer implements IServer
修飾子とタイプ | フィールドと説明 |
---|---|
java.util.List<PendingCommand> |
pendingCommandList |
chunkStatusListenerFactory, DEMO_WORLD_SETTINGS, serverProxy, serverThread, serverTime, tickTimeArray, USER_CACHE_FILE
DUMMY
コンストラクタと説明 |
---|
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_) |
修飾子とタイプ | メソッドと説明 |
---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport report)
Adds the server info, including from theWorldServer, to the crash report.
|
boolean |
allowLogging() |
boolean |
allowLoggingRcon() |
boolean |
allowSpawnMonsters() |
boolean |
canStructuresSpawn() |
protected boolean |
convertFiles() |
void |
executePendingCommands() |
void |
fillSnooper(Snooper snooper) |
void |
func_213223_o(boolean p_213223_1_) |
java.util.Optional<java.lang.String> |
func_230045_q_() |
boolean |
getAllowNether() |
Difficulty |
getDifficulty()
Get the server's difficulty
|
int |
getFunctionLevel() |
GameType |
getGameType() |
boolean |
getGuiEnabled() |
java.lang.String |
getHostname()
Returns the server's hostname.
|
long |
getMaxTickTime() |
int |
getMaxWorldSize() |
java.lang.String |
getMotd()
Returns the server message of the day
|
int |
getNetworkCompressionThreshold()
The compression treshold.
|
int |
getOpPermissionLevel() |
DedicatedPlayerList |
getPlayerList() |
java.lang.String |
getPlugins()
Used by RCon's Query in the form of "MajorServerMod 1.2.3: MyPlugin 1.3; AnotherPlugin 2.1; AndSoForth 1.0".
|
int |
getPort()
Never used, but "getServerPort" is already taken.
|
boolean |
getPublic()
Returns true if this integrated server is open to LAN
|
ServerProperties |
getServerProperties() |
int |
getSpawnProtectionSize()
Return the spawn protection area's size.
|
void |
handleConsoleInput(java.lang.String p_195581_1_,
CommandSource p_195581_2_) |
java.lang.String |
handleRConCommand(java.lang.String command)
Handle a command received by an RCon instance
|
boolean |
init()
Initialises the server and starts it.
|
boolean |
isBlockProtected(World worldIn,
BlockPos pos,
PlayerEntity playerIn) |
boolean |
isCommandBlockEnabled()
Return whether command blocks are enabled.
|
boolean |
isDedicatedServer() |
boolean |
isHardcore()
Defaults to false.
|
boolean |
isServerOwner(com.mojang.authlib.GameProfile profileIn) |
java.lang.String |
loadResourcePackSHA() |
void |
sendMessage(ITextComponent message)
Send a chat message to the CommandSender
|
void |
setGameType(GameType gameMode)
Sets the game type for all worlds.
|
void |
setGuiEnabled() |
void |
setPlayerIdleTimeout(int idleTimeout) |
boolean |
shareToLAN(GameType gameMode,
boolean cheats,
int port) |
boolean |
shouldUseNativeTransport()
Get if native transport should be used.
|
void |
stopServer()
Saves all necessary data as preparation for stopping the server.
|
void |
systemExitNow()
Directly calls System.exit(0), instantly killing the program.
|
void |
updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft) |
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, 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
public final java.util.List<PendingCommand> pendingCommandList
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
クラス内 MinecraftServer
java.io.IOException
public java.lang.String loadResourcePackSHA()
public void setGameType(GameType gameMode)
setGameType
クラス内 MinecraftServer
public ServerProperties getServerProperties()
getServerProperties
インタフェース内 IServer
public boolean canStructuresSpawn()
canStructuresSpawn
クラス内 MinecraftServer
public GameType getGameType()
getGameType
クラス内 MinecraftServer
public Difficulty getDifficulty()
getDifficulty
クラス内 MinecraftServer
public boolean isHardcore()
isHardcore
クラス内 MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport
クラス内 MinecraftServer
public java.util.Optional<java.lang.String> func_230045_q_()
func_230045_q_
クラス内 MinecraftServer
public void systemExitNow()
systemExitNow
クラス内 MinecraftServer
public void updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft)
updateTimeLightAndEntities
クラス内 MinecraftServer
public boolean getAllowNether()
getAllowNether
クラス内 MinecraftServer
public boolean allowSpawnMonsters()
allowSpawnMonsters
クラス内 MinecraftServer
public void fillSnooper(Snooper snooper)
fillSnooper
インタフェース内 ISnooperInfo
fillSnooper
クラス内 MinecraftServer
public void handleConsoleInput(java.lang.String p_195581_1_, CommandSource p_195581_2_)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer
クラス内 MinecraftServer
public boolean shouldUseNativeTransport()
shouldUseNativeTransport
クラス内 MinecraftServer
public DedicatedPlayerList getPlayerList()
getPlayerList
クラス内 MinecraftServer
public boolean getPublic()
getPublic
クラス内 MinecraftServer
public java.lang.String getHostname()
getHostname
インタフェース内 IServer
public int getPort()
public java.lang.String getMotd()
public void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled
クラス内 MinecraftServer
public boolean shareToLAN(GameType gameMode, boolean cheats, int port)
shareToLAN
クラス内 MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
クラス内 MinecraftServer
public int getSpawnProtectionSize()
getSpawnProtectionSize
クラス内 MinecraftServer
public boolean isBlockProtected(World worldIn, BlockPos pos, PlayerEntity playerIn)
isBlockProtected
クラス内 MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
クラス内 MinecraftServer
public int getFunctionLevel()
getFunctionLevel
クラス内 MinecraftServer
public void setPlayerIdleTimeout(int idleTimeout)
setPlayerIdleTimeout
クラス内 MinecraftServer
public boolean allowLoggingRcon()
allowLoggingRcon
クラス内 MinecraftServer
public boolean allowLogging()
allowLogging
インタフェース内 ICommandSource
public int getMaxWorldSize()
getMaxWorldSize
クラス内 MinecraftServer
public int getNetworkCompressionThreshold()
getNetworkCompressionThreshold
クラス内 MinecraftServer
protected boolean convertFiles()
public long getMaxTickTime()
public java.lang.String getPlugins()
getPlugins
インタフェース内 IServer
public java.lang.String handleRConCommand(java.lang.String command)
handleRConCommand
インタフェース内 IServer
public void func_213223_o(boolean p_213223_1_)
public void stopServer()
stopServer
クラス内 MinecraftServer
public boolean isServerOwner(com.mojang.authlib.GameProfile profileIn)
isServerOwner
クラス内 MinecraftServer
public void sendMessage(ITextComponent message)
sendMessage
インタフェース内 ICommandSource
sendMessage
クラス内 MinecraftServer