@Environment(value=CLIENT) public class IntegratedServer extends MinecraftServer
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private LanServerPinger |
lanPinger |
private int |
lanPort |
private LevelInfo |
levelInfo |
private UUID |
localPlayerUuid |
private static Logger |
LOGGER |
private boolean |
paused |
DEMO_LEVEL_INFO, lastTickLengths, proxy, serverThread, session, USER_CACHE_FILE, worldGenerationProgressListenerFactory
DUMMY
Constructor and Description |
---|
IntegratedServer(MinecraftClient client,
LevelStorage.Session session,
String displayName,
LevelInfo levelInfo,
com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService,
com.mojang.authlib.GameProfileRepository gameProfileRepository,
UserCache userCache,
WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory) |
addServerGuiTickable, canExecute, close, createTask, createWorlds, dump, enableProfiler, executeTask, exit, forcePlayerSampleUpdate, getAdvancementLoader, getBossBarManager, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataManager, getDataPackManager, getFile, getGameProfileRepo, getGameRules, getIconFile, getKeyPair, getLootManager, getMaxPlayerCount, getMaxWorldBorderRadius, getMetricsData, getNetworkCompressionThreshold, getNetworkIo, getPermissionLevel, getPlayerIdleTimeout, getPlayerManager, getPlayerNames, getPredicateManager, getProfiler, getRecipeManager, getResourcePackHash, getResourcePackUrl, getScoreboard, getServerIp, getServerMetadata, getServerModName, getServerMotd, getServerName, getServerStartTime, getSessionService, getSnooper, getSpawnProtectionRadius, getSpawnRadius, getTagManager, getThread, getTicks, getTickTime, getUserCache, getUserName, getVersion, getWorkerExecutor, getWorld, getWorldHeight, getWorlds, hasGui, hasIconFile, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPvpEnabled, isRunning, isSinglePlayer, isSpawnProtected, isStopped, isStopping, kickNonWhitelistedPlayers, loadWorldDataPacks, loadWorldResourcePack, main, method_16208, method_27050, method_27052, prepareStartRegion, reload, run, runTask, save, sendSystemMessage, setBonusChest, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setEraseCache, setFavicon, setFlightEnabled, setForceGameMode, setForceWorldUpgrade, setKeyPair, setLoadingStage, setMotd, setOnlineMode, setPlayerIdleTimeout, setPlayerManager, setPreventProxyConnections, setPvpEnabled, setResourcePack, setServerId, setServerIp, setServerName, setServerPort, setSpawnAnimals, setSpawnNpcs, setUserName, setWorldHeight, shouldExecuteAsync, shouldForceGameMode, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, start, stopDebug, syncChunkWrites, tickWorlds
hasRunningTasks
cancelTasks, execute, getName, getTaskCount, isOnThread, runTasks, runTasks, send, submit, submit, submitAndJoin, waitForTasks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ask, create
private static final Logger LOGGER
private final MinecraftClient client
private final LevelInfo levelInfo
private boolean paused
private int lanPort
private LanServerPinger lanPinger
private UUID localPlayerUuid
public IntegratedServer(MinecraftClient client, LevelStorage.Session session, String displayName, LevelInfo levelInfo, com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory)
public void loadWorld(String string, long long2, LevelGeneratorOptions levelGeneratorOptions)
loadWorld
in class MinecraftServer
public boolean setupServer()
setupServer
in class MinecraftServer
public void tick(BooleanSupplier shouldKeepTicking)
tick
in class MinecraftServer
public boolean shouldGenerateStructures()
shouldGenerateStructures
in class MinecraftServer
public GameMode getDefaultGameMode()
getDefaultGameMode
in class MinecraftServer
public Difficulty getDefaultDifficulty()
getDefaultDifficulty
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
public boolean shouldBroadcastRconToOps()
shouldBroadcastRconToOps
in class MinecraftServer
public boolean shouldBroadcastConsoleToOps()
public File getRunDirectory()
getRunDirectory
in class MinecraftServer
public boolean isDedicated()
isDedicated
in class MinecraftServer
public boolean isUsingNativeTransport()
isUsingNativeTransport
in class MinecraftServer
public void setCrashReport(CrashReport report)
setCrashReport
in class MinecraftServer
public CrashReport populateCrashReport(CrashReport crashReport)
populateCrashReport
in class MinecraftServer
public Optional<String> getModdedStatusMessage()
getModdedStatusMessage
in class MinecraftServer
public void addSnooperInfo(Snooper snooper)
addSnooperInfo
in interface SnooperListener
addSnooperInfo
in class MinecraftServer
public boolean openToLan(GameMode gameMode, boolean cheatsAllowed, int port)
openToLan
in class MinecraftServer
public void shutdown()
shutdown
in class MinecraftServer
public void stop(boolean bool)
stop
in class MinecraftServer
public boolean isRemote()
isRemote
in class MinecraftServer
public int getServerPort()
getServerPort
in class MinecraftServer
public void setDefaultGameMode(GameMode gameMode)
setDefaultGameMode
in class MinecraftServer
public boolean areCommandBlocksEnabled()
areCommandBlocksEnabled
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
in class MinecraftServer
public int getFunctionPermissionLevel()
getFunctionPermissionLevel
in class MinecraftServer
public void setLocalPlayerUuid(UUID localPlayerUuid)
public boolean isHost(com.mojang.authlib.GameProfile profile)
isHost
in class MinecraftServer