public abstract class MinecraftServer extends RecursiveEventLoop<TickDelayedTask> implements ISnooperInfo, ICommandSource, java.lang.AutoCloseable, java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private AdvancementManager |
advancementManager |
private boolean |
allowFlight |
private SaveFormat |
anvilConverterForAnvilFile |
private java.io.File |
anvilFile |
private com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService |
authService |
private java.util.concurrent.Executor |
backgroundExecutor |
private int |
buildLimit |
private boolean |
canSpawnAnimals |
private boolean |
canSpawnNPCs |
protected IChunkStatusListenerFactory |
chunkStatusListenerFactory |
private Commands |
commandManager |
private CustomServerBossInfoManager |
customBossEvents |
private com.mojang.datafixers.DataFixer |
dataFixer |
private FolderPackFinder |
datapackFinder |
static WorldSettings |
DEMO_WORLD_SETTINGS |
private boolean |
enableBonusChest |
private boolean |
eraseCache |
private static java.util.concurrent.CompletableFuture<Unit> |
field_223713_i |
private CommandStorage |
field_229733_al_ |
private LootPredicateManager |
field_229734_an_ |
private java.lang.String |
folderName |
private boolean |
forceWorldUpgrade |
private FrameTimer |
frameTimer |
private FunctionManager |
functionManager |
private java.lang.String |
hostname |
private boolean |
isDemo |
private boolean |
isGamemodeForced |
private boolean |
isRunningScheduledTasks |
private static org.apache.logging.log4j.Logger |
LOGGER |
private LootModifierManager |
lootManager |
private LootTableManager |
lootTableManager |
private int |
maxPlayerIdleMinutes |
private java.lang.String |
motd |
private long |
nanoTimeSinceStatusRefresh |
private NetworkSystem |
networkSystem |
private NetworkTagManager |
networkTagManager |
private boolean |
onlineMode |
private java.util.Map<DimensionType,long[]> |
perWorldTickTimes |
private PlayerList |
playerList |
private boolean |
preventProxyConnections |
private PlayerProfileCache |
profileCache |
private DebugProfiler |
profiler |
private com.mojang.authlib.GameProfileRepository |
profileRepo |
private boolean |
pvpEnabled |
private java.util.Random |
random |
private RecipeManager |
recipeManager |
private IReloadableResourceManager |
resourceManager |
private java.lang.String |
resourcePackHash |
private ResourcePackList<ResourcePackInfo> |
resourcePacks |
private java.lang.String |
resourcePackUrl |
private long |
runTasksUntil |
private ServerScoreboard |
scoreboard |
private java.lang.String |
serverId |
private boolean |
serverIsRunning |
private java.security.KeyPair |
serverKeyPair |
private java.lang.String |
serverOwner |
private int |
serverPort |
protected java.net.Proxy |
serverProxy |
private boolean |
serverRunning |
private boolean |
serverStopped |
protected java.lang.Thread |
serverThread |
protected long |
serverTime |
private com.mojang.authlib.minecraft.MinecraftSessionService |
sessionService |
private Snooper |
snooper |
private boolean |
startProfiling |
private ServerStatusResponse |
statusResponse |
private java.util.List<java.lang.Runnable> |
tickables |
private int |
tickCounter |
private float |
tickTime |
long[] |
tickTimeArray |
private long |
timeOfLastWarning |
static java.io.File |
USER_CACHE_FILE |
private ITextComponent |
userMessage |
private boolean |
whitelistEnabled |
private ServerWorld[] |
worldArray |
private int |
worldArrayLast |
private int |
worldArrayMarker |
private boolean |
worldIconSet |
private java.lang.String |
worldName |
private java.util.Map<DimensionType,ServerWorld> |
worlds |
DUMMY
Constructor and Description |
---|
MinecraftServer(java.io.File p_i50590_1_,
java.net.Proxy p_i50590_2_,
com.mojang.datafixers.DataFixer dataFixerIn,
Commands p_i50590_4_,
com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_i50590_5_,
com.mojang.authlib.minecraft.MinecraftSessionService p_i50590_6_,
com.mojang.authlib.GameProfileRepository p_i50590_7_,
PlayerProfileCache p_i50590_8_,
IChunkStatusListenerFactory p_i50590_9_,
java.lang.String p_i50590_10_) |
Modifier and Type | Method and Description |
---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport report) |
abstract boolean |
allowLoggingRcon() |
protected boolean |
allowSpawnMonsters() |
private void |
applyDebugWorldInfo(WorldInfo worldInfoIn) |
void |
applyServerIconToResponse(ServerStatusResponse response) |
void |
canCreateBonusChest(boolean enable) |
protected boolean |
canRun(TickDelayedTask runnable) |
abstract boolean |
canStructuresSpawn() |
void |
close() |
protected void |
convertMapIfNeeded(java.lang.String worldNameIn) |
boolean |
driveOne() |
private boolean |
driveOneInternal() |
private void |
dumpClasspath(java.nio.file.Path p_223706_1_) |
void |
dumpDebugInfo(java.nio.file.Path p_223711_1_) |
private void |
dumpDummyCrashReport(java.nio.file.Path p_223709_1_) |
private void |
dumpGameRules(java.nio.file.Path p_223708_1_) |
private void |
dumpStats(java.nio.file.Path p_223710_1_) |
private void |
dumpThreads(java.nio.file.Path p_223712_1_) |
void |
enableProfiling() |
void |
fillSnooper(Snooper snooper) |
protected void |
finalTick(CrashReport report) |
java.util.Map<DimensionType,ServerWorld> |
forgeGetWorldMap()
Deprecated.
|
private void |
func_213204_a(DimensionSavedDataManager p_213204_1_) |
CommandStorage |
func_229735_aN_() |
LootPredicateManager |
func_229736_aP_() |
private void |
func_229737_ba_() |
abstract java.util.Optional<java.lang.String> |
func_230045_q_() |
SaveFormat |
getActiveAnvilConverter() |
AdvancementManager |
getAdvancementManager() |
boolean |
getAllowNether() |
java.util.concurrent.Executor |
getBackgroundExecutor() |
int |
getBuildLimit() |
boolean |
getCanSpawnAnimals() |
boolean |
getCanSpawnNPCs() |
Commands |
getCommandManager() |
CommandSource |
getCommandSource() |
int |
getCurrentPlayerCount() |
CustomServerBossInfoManager |
getCustomBossEvents() |
java.io.File |
getDataDirectory() |
com.mojang.datafixers.DataFixer |
getDataFixer() |
abstract Difficulty |
getDifficulty() |
java.lang.Thread |
getExecutionThread() |
java.io.File |
getFile(java.lang.String fileName) |
java.lang.String |
getFolderName() |
boolean |
getForceGamemode() |
FrameTimer |
getFrameTimer() |
abstract int |
getFunctionLevel() |
FunctionManager |
getFunctionManager() |
com.mojang.authlib.GameProfileRepository |
getGameProfileRepository() |
GameRules |
getGameRules() |
abstract GameType |
getGameType() |
boolean |
getGuiEnabled() |
java.security.KeyPair |
getKeyPair() |
LootModifierManager |
getLootModifierManager() |
LootTableManager |
getLootTableManager() |
int |
getMaxPlayerIdleMinutes() |
int |
getMaxPlayers() |
int |
getMaxWorldSize() |
com.mojang.authlib.minecraft.MinecraftSessionService |
getMinecraftSessionService() |
java.lang.String |
getMinecraftVersion() |
java.lang.String |
getMOTD() |
int |
getNetworkCompressionThreshold() |
NetworkSystem |
getNetworkSystem() |
NetworkTagManager |
getNetworkTagManager() |
java.lang.String[] |
getOnlinePlayerNames() |
abstract int |
getOpPermissionLevel() |
int |
getPermissionLevel(com.mojang.authlib.GameProfile profile) |
PlayerList |
getPlayerList() |
PlayerProfileCache |
getPlayerProfileCache() |
boolean |
getPreventProxyConnections() |
DebugProfiler |
getProfiler() |
abstract boolean |
getPublic() |
RecipeManager |
getRecipeManager() |
IReloadableResourceManager |
getResourceManager() |
java.lang.String |
getResourcePackHash() |
ResourcePackList<ResourcePackInfo> |
getResourcePacks() |
java.lang.String |
getResourcePackUrl() |
ServerScoreboard |
getScoreboard() |
java.lang.String |
getServerHostname() |
java.lang.String |
getServerModName() |
java.lang.String |
getServerOwner() |
int |
getServerPort() |
ServerStatusResponse |
getServerStatusResponse() |
long |
getServerTime() |
Snooper |
getSnooper() |
int |
getSpawnProtectionSize() |
int |
getSpawnRadius(ServerWorld worldIn) |
int |
getTickCounter() |
float |
getTickTime() |
long[] |
getTickTime(DimensionType dim) |
ServerWorld |
getWorld(DimensionType dimension) |
private ServerWorld[] |
getWorldArray() |
java.io.File |
getWorldIconFile() |
java.lang.String |
getWorldName() |
java.lang.Iterable<ServerWorld> |
getWorlds() |
protected abstract boolean |
init() |
void |
initiateShutdown(boolean waitForServer) |
private boolean |
isAheadOfTime() |
boolean |
isAnvilFileSet() |
boolean |
isBlockProtected(World worldIn,
BlockPos pos,
PlayerEntity playerIn) |
abstract boolean |
isCommandBlockEnabled() |
boolean |
isDebuggingEnabled() |
abstract boolean |
isDedicatedServer() |
boolean |
isDemo() |
boolean |
isFlightAllowed() |
abstract boolean |
isHardcore() |
boolean |
isPVPEnabled() |
boolean |
isServerInOnlineMode() |
abstract boolean |
isServerOwner(com.mojang.authlib.GameProfile profileIn) |
boolean |
isServerRunning() |
boolean |
isServerStopped() |
boolean |
isSinglePlayer() |
boolean |
isThreadAlive() |
boolean |
isWhitelistEnabled() |
boolean |
isWorldIconSet() |
void |
kickPlayersNotWhitelisted(CommandSource commandSourceIn) |
protected void |
loadAllWorlds(java.lang.String saveName,
java.lang.String worldNameIn,
long seed,
WorldType type,
com.google.gson.JsonElement generatorOptions) |
protected void |
loadDataPacks(java.io.File p_195560_1_,
WorldInfo p_195560_2_) |
private void |
loadDataPacks(WorldInfo worldInfoIn) |
protected void |
loadInitialChunks(IChunkStatusListener p_213186_1_) |
protected void |
loadWorlds(SaveHandler saveHandlerIn,
WorldInfo info,
WorldSettings worldSettingsIn,
IChunkStatusListener chunkStatusListenerIn) |
void |
logDebug(java.lang.String msg) |
void |
logInfo(java.lang.String msg) |
void |
logSevere(java.lang.String msg) |
void |
logWarning(java.lang.String msg) |
static void |
main(java.lang.String[] p_main_0_) |
void |
markWorldsDirty()
Deprecated.
|
void |
refreshStatusNextTick() |
void |
registerTickable(java.lang.Runnable tickable) |
void |
reload() |
void |
run() |
protected void |
run(TickDelayedTask taskIn) |
protected void |
runScheduledTasks() |
boolean |
save(boolean suppressLog,
boolean flush,
boolean forced) |
private void |
sendDifficultyToPlayer(ServerPlayerEntity playerIn) |
void |
sendMessage(ITextComponent component) |
boolean |
serverIsInRunLoop() |
void |
setAllowFlight(boolean allow) |
void |
setAllowPvp(boolean allowPvp) |
void |
setBuildLimit(int maxBuildHeight) |
void |
setCanSpawnAnimals(boolean spawnAnimals) |
void |
setCanSpawnNPCs(boolean spawnNpcs) |
void |
setDemo(boolean demo) |
void |
setDifficultyForAllWorlds(Difficulty difficulty,
boolean p_147139_2_) |
void |
setDifficultyLocked(boolean locked) |
protected void |
setEraseCache(boolean eraseCacheIn) |
void |
setForceGamemode(boolean force) |
protected void |
setForceWorldUpgrade(boolean forceWorldUpgradeIn) |
void |
setGameType(GameType gameMode) |
void |
setHostname(java.lang.String host) |
void |
setKeyPair(java.security.KeyPair keyPair) |
void |
setMOTD(java.lang.String motdIn) |
void |
setOnlineMode(boolean online) |
void |
setPlayerIdleTimeout(int idleTimeout) |
void |
setPlayerList(PlayerList list) |
void |
setPreventProxyConnections(boolean p_190517_1_) |
void |
setResourcePack(java.lang.String url,
java.lang.String hash) |
protected void |
setResourcePackFromWorld(java.lang.String worldNameIn,
SaveHandler saveHandlerIn) |
protected void |
setServerId(java.lang.String serverIdIn) |
void |
setServerOwner(java.lang.String owner) |
void |
setServerPort(int port) |
protected void |
setUserMessage(ITextComponent userMessageIn) |
void |
setWhitelistEnabled(boolean whitelistEnabledIn) |
void |
setWorldName(java.lang.String worldNameIn) |
abstract boolean |
shareToLAN(GameType gameMode,
boolean cheats,
int port) |
boolean |
shouldDeferTasks() |
boolean |
shouldReceiveErrors() |
boolean |
shouldReceiveFeedback() |
abstract boolean |
shouldUseNativeTransport() |
void |
startServerThread() |
protected void |
stopServer() |
protected void |
systemExitNow() |
protected void |
tick(java.util.function.BooleanSupplier hasTimeLeft) |
protected void |
updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft) |
protected TickDelayedTask |
wrapTask(java.lang.Runnable runnable) |
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
allowLogging
func_213141_a, inline
private static final org.apache.logging.log4j.Logger LOGGER
public static final java.io.File USER_CACHE_FILE
private static final java.util.concurrent.CompletableFuture<Unit> field_223713_i
public static final WorldSettings DEMO_WORLD_SETTINGS
private final SaveFormat anvilConverterForAnvilFile
private final Snooper snooper
private final java.io.File anvilFile
private final java.util.List<java.lang.Runnable> tickables
private final DebugProfiler profiler
private final NetworkSystem networkSystem
protected final IChunkStatusListenerFactory chunkStatusListenerFactory
private final ServerStatusResponse statusResponse
private final java.util.Random random
private final com.mojang.datafixers.DataFixer dataFixer
private java.lang.String hostname
private int serverPort
private final java.util.Map<DimensionType,ServerWorld> worlds
private PlayerList playerList
private volatile boolean serverRunning
private boolean serverStopped
private int tickCounter
protected final java.net.Proxy serverProxy
private boolean onlineMode
private boolean preventProxyConnections
private boolean canSpawnAnimals
private boolean canSpawnNPCs
private boolean pvpEnabled
private boolean allowFlight
@Nullable private java.lang.String motd
private int buildLimit
private int maxPlayerIdleMinutes
public final long[] tickTimeArray
@Nullable private java.security.KeyPair serverKeyPair
@Nullable private java.lang.String serverOwner
private final java.lang.String folderName
@Nullable private java.lang.String worldName
private boolean isDemo
private boolean enableBonusChest
private java.lang.String resourcePackUrl
private java.lang.String resourcePackHash
private volatile boolean serverIsRunning
private long timeOfLastWarning
@Nullable private ITextComponent userMessage
private boolean startProfiling
private boolean isGamemodeForced
@Nullable private final com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authService
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
private final com.mojang.authlib.GameProfileRepository profileRepo
private final PlayerProfileCache profileCache
private long nanoTimeSinceStatusRefresh
protected final java.lang.Thread serverThread
protected long serverTime
private long runTasksUntil
private boolean isRunningScheduledTasks
private boolean worldIconSet
private final IReloadableResourceManager resourceManager
private final ResourcePackList<ResourcePackInfo> resourcePacks
@Nullable private FolderPackFinder datapackFinder
private final Commands commandManager
private final RecipeManager recipeManager
private final NetworkTagManager networkTagManager
private final ServerScoreboard scoreboard
@Nullable private CommandStorage field_229733_al_
private final CustomServerBossInfoManager customBossEvents
private final LootPredicateManager field_229734_an_
private final LootTableManager lootTableManager
private final AdvancementManager advancementManager
private final FunctionManager functionManager
private final LootModifierManager lootManager
private final FrameTimer frameTimer
private boolean whitelistEnabled
private boolean forceWorldUpgrade
private boolean eraseCache
private float tickTime
private final java.util.concurrent.Executor backgroundExecutor
@Nullable private java.lang.String serverId
private java.util.Map<DimensionType,long[]> perWorldTickTimes
private int worldArrayMarker
private int worldArrayLast
private ServerWorld[] worldArray
public MinecraftServer(java.io.File p_i50590_1_, java.net.Proxy p_i50590_2_, com.mojang.datafixers.DataFixer dataFixerIn, Commands p_i50590_4_, com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_i50590_5_, com.mojang.authlib.minecraft.MinecraftSessionService p_i50590_6_, com.mojang.authlib.GameProfileRepository p_i50590_7_, PlayerProfileCache p_i50590_8_, IChunkStatusListenerFactory p_i50590_9_, java.lang.String p_i50590_10_)
private void func_213204_a(DimensionSavedDataManager p_213204_1_)
protected abstract boolean init() throws java.io.IOException
java.io.IOException
protected void convertMapIfNeeded(java.lang.String worldNameIn)
protected void setUserMessage(ITextComponent userMessageIn)
protected void loadAllWorlds(java.lang.String saveName, java.lang.String worldNameIn, long seed, WorldType type, com.google.gson.JsonElement generatorOptions)
protected void loadWorlds(SaveHandler saveHandlerIn, WorldInfo info, WorldSettings worldSettingsIn, IChunkStatusListener chunkStatusListenerIn)
private void applyDebugWorldInfo(WorldInfo worldInfoIn)
protected void loadDataPacks(java.io.File p_195560_1_, WorldInfo p_195560_2_)
protected void loadInitialChunks(IChunkStatusListener p_213186_1_)
protected void setResourcePackFromWorld(java.lang.String worldNameIn, SaveHandler saveHandlerIn)
public abstract boolean canStructuresSpawn()
public abstract GameType getGameType()
public abstract Difficulty getDifficulty()
public abstract boolean isHardcore()
public abstract int getOpPermissionLevel()
public abstract int getFunctionLevel()
public abstract boolean allowLoggingRcon()
public boolean save(boolean suppressLog, boolean flush, boolean forced)
public void close()
close
in interface java.lang.AutoCloseable
close
in interface ITaskExecutor<TickDelayedTask>
protected void stopServer()
public java.lang.String getServerHostname()
public void setHostname(java.lang.String host)
public boolean isServerRunning()
public void initiateShutdown(boolean waitForServer)
public void run()
run
in interface java.lang.Runnable
private boolean isAheadOfTime()
protected void runScheduledTasks()
protected TickDelayedTask wrapTask(java.lang.Runnable runnable)
wrapTask
in class ThreadTaskExecutor<TickDelayedTask>
protected boolean canRun(TickDelayedTask runnable)
canRun
in class ThreadTaskExecutor<TickDelayedTask>
public boolean driveOne()
driveOne
in class ThreadTaskExecutor<TickDelayedTask>
private boolean driveOneInternal()
protected void run(TickDelayedTask taskIn)
run
in class RecursiveEventLoop<TickDelayedTask>
public void applyServerIconToResponse(ServerStatusResponse response)
public boolean isWorldIconSet()
public java.io.File getWorldIconFile()
public java.io.File getDataDirectory()
protected void finalTick(CrashReport report)
protected void systemExitNow()
protected void tick(java.util.function.BooleanSupplier hasTimeLeft)
protected void updateTimeLightAndEntities(java.util.function.BooleanSupplier hasTimeLeft)
public boolean getAllowNether()
public void registerTickable(java.lang.Runnable tickable)
public static void main(java.lang.String[] p_main_0_)
protected void setServerId(java.lang.String serverIdIn)
protected void setForceWorldUpgrade(boolean forceWorldUpgradeIn)
protected void setEraseCache(boolean eraseCacheIn)
public void startServerThread()
public boolean isThreadAlive()
public java.io.File getFile(java.lang.String fileName)
public void logInfo(java.lang.String msg)
public void logWarning(java.lang.String msg)
public ServerWorld getWorld(DimensionType dimension)
public java.lang.Iterable<ServerWorld> getWorlds()
public java.lang.String getMinecraftVersion()
public int getCurrentPlayerCount()
public int getMaxPlayers()
public java.lang.String[] getOnlinePlayerNames()
public boolean isDebuggingEnabled()
public void logSevere(java.lang.String msg)
public void logDebug(java.lang.String msg)
public java.lang.String getServerModName()
public CrashReport addServerInfoToCrashReport(CrashReport report)
public abstract java.util.Optional<java.lang.String> func_230045_q_()
public boolean isAnvilFileSet()
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSource
public java.security.KeyPair getKeyPair()
public int getServerPort()
public void setServerPort(int port)
public java.lang.String getServerOwner()
public void setServerOwner(java.lang.String owner)
public boolean isSinglePlayer()
public java.lang.String getFolderName()
public void setWorldName(java.lang.String worldNameIn)
public java.lang.String getWorldName()
public void setKeyPair(java.security.KeyPair keyPair)
public void setDifficultyForAllWorlds(Difficulty difficulty, boolean p_147139_2_)
public void setDifficultyLocked(boolean locked)
private void sendDifficultyToPlayer(ServerPlayerEntity playerIn)
protected boolean allowSpawnMonsters()
public boolean isDemo()
public void setDemo(boolean demo)
public void canCreateBonusChest(boolean enable)
public SaveFormat getActiveAnvilConverter()
public java.lang.String getResourcePackUrl()
public java.lang.String getResourcePackHash()
public void setResourcePack(java.lang.String url, java.lang.String hash)
public void fillSnooper(Snooper snooper)
fillSnooper
in interface ISnooperInfo
public abstract boolean isDedicatedServer()
public boolean isServerInOnlineMode()
public void setOnlineMode(boolean online)
public boolean getPreventProxyConnections()
public void setPreventProxyConnections(boolean p_190517_1_)
public boolean getCanSpawnAnimals()
public void setCanSpawnAnimals(boolean spawnAnimals)
public boolean getCanSpawnNPCs()
public abstract boolean shouldUseNativeTransport()
public void setCanSpawnNPCs(boolean spawnNpcs)
public boolean isPVPEnabled()
public void setAllowPvp(boolean allowPvp)
public boolean isFlightAllowed()
public void setAllowFlight(boolean allow)
public abstract boolean isCommandBlockEnabled()
public java.lang.String getMOTD()
public void setMOTD(java.lang.String motdIn)
public int getBuildLimit()
public void setBuildLimit(int maxBuildHeight)
public boolean isServerStopped()
public PlayerList getPlayerList()
public void setPlayerList(PlayerList list)
public abstract boolean getPublic()
public void setGameType(GameType gameMode)
@Nullable public NetworkSystem getNetworkSystem()
public boolean serverIsInRunLoop()
public boolean getGuiEnabled()
public abstract boolean shareToLAN(GameType gameMode, boolean cheats, int port)
public int getTickCounter()
public void enableProfiling()
public Snooper getSnooper()
public int getSpawnProtectionSize()
public boolean isBlockProtected(World worldIn, BlockPos pos, PlayerEntity playerIn)
public void setForceGamemode(boolean force)
public boolean getForceGamemode()
public int getMaxPlayerIdleMinutes()
public void setPlayerIdleTimeout(int idleTimeout)
public com.mojang.authlib.minecraft.MinecraftSessionService getMinecraftSessionService()
public com.mojang.authlib.GameProfileRepository getGameProfileRepository()
public PlayerProfileCache getPlayerProfileCache()
public ServerStatusResponse getServerStatusResponse()
public void refreshStatusNextTick()
public int getMaxWorldSize()
public boolean shouldDeferTasks()
shouldDeferTasks
in class RecursiveEventLoop<TickDelayedTask>
public java.lang.Thread getExecutionThread()
getExecutionThread
in class ThreadTaskExecutor<TickDelayedTask>
public int getNetworkCompressionThreshold()
public long getServerTime()
public com.mojang.datafixers.DataFixer getDataFixer()
public int getSpawnRadius(@Nullable ServerWorld worldIn)
public AdvancementManager getAdvancementManager()
public FunctionManager getFunctionManager()
public LootModifierManager getLootModifierManager()
public void reload()
private void loadDataPacks(WorldInfo worldInfoIn)
public void kickPlayersNotWhitelisted(CommandSource commandSourceIn)
public IReloadableResourceManager getResourceManager()
public ResourcePackList<ResourcePackInfo> getResourcePacks()
public Commands getCommandManager()
public CommandSource getCommandSource()
public boolean shouldReceiveFeedback()
shouldReceiveFeedback
in interface ICommandSource
public boolean shouldReceiveErrors()
shouldReceiveErrors
in interface ICommandSource
public RecipeManager getRecipeManager()
public NetworkTagManager getNetworkTagManager()
public ServerScoreboard getScoreboard()
public CommandStorage func_229735_aN_()
public LootTableManager getLootTableManager()
public LootPredicateManager func_229736_aP_()
public GameRules getGameRules()
public CustomServerBossInfoManager getCustomBossEvents()
public boolean isWhitelistEnabled()
public void setWhitelistEnabled(boolean whitelistEnabledIn)
public float getTickTime()
public int getPermissionLevel(com.mojang.authlib.GameProfile profile)
public FrameTimer getFrameTimer()
public DebugProfiler getProfiler()
public java.util.concurrent.Executor getBackgroundExecutor()
public abstract boolean isServerOwner(com.mojang.authlib.GameProfile profileIn)
@Nullable public long[] getTickTime(DimensionType dim)
@Deprecated public java.util.Map<DimensionType,ServerWorld> forgeGetWorldMap()
@Deprecated public void markWorldsDirty()
private ServerWorld[] getWorldArray()
public void dumpDebugInfo(java.nio.file.Path p_223711_1_) throws java.io.IOException
java.io.IOException
private void dumpStats(java.nio.file.Path p_223710_1_) throws java.io.IOException
java.io.IOException
private void dumpDummyCrashReport(java.nio.file.Path p_223709_1_) throws java.io.IOException
java.io.IOException
private void dumpGameRules(java.nio.file.Path p_223708_1_) throws java.io.IOException
java.io.IOException
private void dumpClasspath(java.nio.file.Path p_223706_1_) throws java.io.IOException
java.io.IOException
private void dumpThreads(java.nio.file.Path p_223712_1_) throws java.io.IOException
java.io.IOException
private void func_229737_ba_()