public class DedicatedServer extends MinecraftServer implements IServer
| 修飾子とタイプ | フィールドと説明 |
|---|---|
java.util.List<PendingCommand> |
pendingCommandList |
chunkStatusListenerFactory, DEMO_WORLD_SETTINGS, serverProxy, serverThread, serverTime, tickTimeArray, USER_CACHE_FILEDUMMY| コンストラクタと説明 |
|---|
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, 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, inlinepublic 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 クラス内 MinecraftServerjava.io.IOExceptionpublic java.lang.String loadResourcePackSHA()
public void setGameType(GameType gameMode)
setGameType クラス内 MinecraftServerpublic ServerProperties getServerProperties()
getServerProperties インタフェース内 IServerpublic boolean canStructuresSpawn()
canStructuresSpawn クラス内 MinecraftServerpublic GameType getGameType()
getGameType クラス内 MinecraftServerpublic Difficulty getDifficulty()
getDifficulty クラス内 MinecraftServerpublic boolean isHardcore()
isHardcore クラス内 MinecraftServerpublic CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport クラス内 MinecraftServerpublic java.util.Optional<java.lang.String> func_230045_q_()
func_230045_q_ クラス内 MinecraftServerpublic void systemExitNow()
systemExitNow クラス内 MinecraftServerpublic void updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft)
updateTimeLightAndEntities クラス内 MinecraftServerpublic boolean getAllowNether()
getAllowNether クラス内 MinecraftServerpublic boolean allowSpawnMonsters()
allowSpawnMonsters クラス内 MinecraftServerpublic void fillSnooper(Snooper snooper)
fillSnooper インタフェース内 ISnooperInfofillSnooper クラス内 MinecraftServerpublic void handleConsoleInput(java.lang.String p_195581_1_,
CommandSource p_195581_2_)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer クラス内 MinecraftServerpublic boolean shouldUseNativeTransport()
shouldUseNativeTransport クラス内 MinecraftServerpublic DedicatedPlayerList getPlayerList()
getPlayerList クラス内 MinecraftServerpublic boolean getPublic()
getPublic クラス内 MinecraftServerpublic java.lang.String getHostname()
getHostname インタフェース内 IServerpublic int getPort()
public java.lang.String getMotd()
public void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled クラス内 MinecraftServerpublic boolean shareToLAN(GameType gameMode, boolean cheats, int port)
shareToLAN クラス内 MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled クラス内 MinecraftServerpublic int getSpawnProtectionSize()
getSpawnProtectionSize クラス内 MinecraftServerpublic boolean isBlockProtected(World worldIn, BlockPos pos, PlayerEntity playerIn)
isBlockProtected クラス内 MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel クラス内 MinecraftServerpublic int getFunctionLevel()
getFunctionLevel クラス内 MinecraftServerpublic void setPlayerIdleTimeout(int idleTimeout)
setPlayerIdleTimeout クラス内 MinecraftServerpublic boolean allowLoggingRcon()
allowLoggingRcon クラス内 MinecraftServerpublic boolean allowLogging()
allowLogging インタフェース内 ICommandSourcepublic int getMaxWorldSize()
getMaxWorldSize クラス内 MinecraftServerpublic int getNetworkCompressionThreshold()
getNetworkCompressionThreshold クラス内 MinecraftServerprotected boolean convertFiles()
public long getMaxTickTime()
public java.lang.String getPlugins()
getPlugins インタフェース内 IServerpublic java.lang.String handleRConCommand(java.lang.String command)
handleRConCommand インタフェース内 IServerpublic void func_213223_o(boolean p_213223_1_)
public void stopServer()
stopServer クラス内 MinecraftServerpublic boolean isServerOwner(com.mojang.authlib.GameProfile profileIn)
isServerOwner クラス内 MinecraftServerpublic void sendMessage(ITextComponent message)
sendMessage インタフェース内 ICommandSourcesendMessage クラス内 MinecraftServer