类 IntegratedServer
- java.lang.Object
-
- net.minecraft.util.thread.ThreadExecutor<R>
-
- net.minecraft.util.thread.ReentrantThreadExecutor<ServerTask>
-
- net.minecraft.server.MinecraftServer
-
- net.minecraft.server.integrated.IntegratedServer
-
- 所有已实现的接口:
AutoCloseable,Executor,CommandOutput,MetricSamplerSupplier,SnooperListener,MessageListener<ServerTask>
@Environment(CLIENT) public class IntegratedServer extends MinecraftServer
- Mappings:
Namespace Name official ezhintermediary net/minecraft/class_1132named net/minecraft/server/integrated/IntegratedServer
-
-
字段概要
字段 修饰符和类型 字段 说明 private MinecraftClientclientstatic intfield_33015private @Nullable GameModeforcedGameModeprivate LanServerPingerlanPingerprivate intlanPortprivate UUIDlocalPlayerUuidprivate static LoggerLOGGERprivate booleanpaused-
从类继承的字段 net.minecraft.server.MinecraftServer
DEMO_LEVEL_INFO, field_33206, field_33207, field_33208, field_33209, field_33210, field_33211, lastTickLengths, proxy, registryManager, saveHandler, saveProperties, session, USER_CACHE_FILE
-
从接口继承的字段 net.minecraft.server.command.CommandOutput
DUMMY
-
-
构造器概要
构造器 构造器 说明 IntegratedServer(Thread serverThread, MinecraftClient client, DynamicRegistryManager.Impl registryManager, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, SaveProperties saveProperties, com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.GameProfileRepository gameProfileRepo, UserCache userCache, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddSnooperInfo(Snooper snooper)intadjustTrackingDistance(int initialDistance)booleanareCommandBlocksEnabled()Specifies whether command blocks can execute commands on the server.@Nullable GameModegetForcedGameMode()Returns the game mode a player should be set to when connecting to the server, ornullif none is set.intgetFunctionPermissionLevel()Optional<String>getModdedStatusMessage()intgetOpPermissionLevel()intgetRateLimit()FilegetRunDirectory()intgetServerPort()booleanisDedicated()Checks whether this server is a dedicated server.booleanisHost(com.mojang.authlib.GameProfile profile)booleanisRemote()booleanisUsingNativeTransport()booleanmethod_35033()booleanopenToLan(@Nullable GameMode gameMode, boolean cheatsAllowed, int port)Opens a server for LAN connections.CrashReportpopulateCrashReport(CrashReport report)voidsetCrashReport(CrashReport report)voidsetDefaultGameMode(GameMode gameMode)voidsetLocalPlayerUuid(UUID localPlayerUuid)booleansetupServer()Setups a Minecraft server to be ready for players to connect.booleanshouldBroadcastConsoleToOps()booleanshouldBroadcastRconToOps()voidshutdown()voidstop(boolean bool)booleansyncChunkWrites()voidtick(BooleanSupplier shouldKeepTicking)-
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsStatusQuery, addServerGuiTickable, canExecute, close, convertLevel, createFilterer, createTask, createWorlds, dump, enableProfiler, executeTask, exit, forcePlayerSampleUpdate, generateKeyPair, getAdvancementLoader, getBossBarManager, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataPackManager, getDefaultGameMode, getFile, getGameProfileRepo, getGameRules, getIconFile, getItemModifierManager, getKeyPair, getLootManager, getMaxPlayerCount, getMaxWorldBorderRadius, getMetricsData, getNetworkCompressionThreshold, getNetworkIo, getOverworld, getPermissionLevel, getPlayerIdleTimeout, getPlayerInteractionManager, getPlayerManager, getPlayerNames, getPredicateManager, getProfiler, getRecipeManager, getRegistryManager, getResourcePackHash, getResourcePackUrl, getSavePath, getSaveProperties, getScoreboard, getServerIp, getServerMetadata, getServerModName, getServerMotd, getServerStartTime, getSessionService, getSnooper, getSpawnProtectionRadius, getSpawnRadius, getStructureManager, getTagManager, getThread, getTicks, getTickTime, getUserCache, getUserName, getVersion, getWorld, getWorldRegistryKeys, getWorlds, hasGui, hasIconFile, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isHardcore, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPvpEnabled, isRunning, isSinglePlayer, isSpawnProtected, isStopped, isStopping, kickNonWhitelistedPlayers, loadDataPacks, loadWorld, loadWorldResourcePack, method_16208, method_34864, method_35034, method_36113, reloadResources, requireResourcePack, runServer, runTask, save, sendSystemMessage, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightEnabled, setMotd, setOnlineMode, setPlayerIdleTimeout, setPlayerManager, setPreventProxyConnections, setPvpEnabled, setResourcePack, setServerId, setServerIp, setServerName, setServerPort, shouldExecuteAsync, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, startServer, stopDebug, tickWorlds, updateDifficulty
-
从类继承的方法 net.minecraft.util.thread.ReentrantThreadExecutor
hasRunningTasks
-
从类继承的方法 net.minecraft.util.thread.ThreadExecutor
cancelTasks, execute, getName, getSamplers, getTaskCount, isOnThread, runTasks, runTasks, send, submit, submit, submitAndJoin, waitForTasks
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.util.thread.MessageListener
ask, askFallible
-
-
-
-
字段详细资料
-
field_33015
public static final int field_33015
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLezh;a:Iintermediary field_33015Lnet/minecraft/class_1132;field_33015:Inamed field_33015Lnet/minecraft/server/integrated/IntegratedServer;field_33015:I
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official pLezh;p:Lorg/apache/logging/log4j/Logger;intermediary field_5520Lnet/minecraft/class_1132;field_5520:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/server/integrated/IntegratedServer;LOGGER:Lorg/apache/logging/log4j/Logger;
-
client
private final MinecraftClient client
- Mappings:
Namespace Name Mixin selector official qLezh;q:Ldum;intermediary field_5518Lnet/minecraft/class_1132;field_5518:Lnet/minecraft/class_310;named clientLnet/minecraft/server/integrated/IntegratedServer;client:Lnet/minecraft/client/MinecraftClient;
-
paused
private boolean paused
- Mappings:
Namespace Name Mixin selector official rLezh;r:Zintermediary field_5524Lnet/minecraft/class_1132;field_5524:Znamed pausedLnet/minecraft/server/integrated/IntegratedServer;paused:Z
-
lanPort
private int lanPort
- Mappings:
Namespace Name Mixin selector official sLezh;s:Iintermediary field_5522Lnet/minecraft/class_1132;field_5522:Inamed lanPortLnet/minecraft/server/integrated/IntegratedServer;lanPort:I
-
forcedGameMode
@Nullable private @Nullable GameMode forcedGameMode
- Mappings:
Namespace Name Mixin selector official tLezh;t:Lbvo;intermediary field_28075Lnet/minecraft/class_1132;field_28075:Lnet/minecraft/class_1934;named forcedGameModeLnet/minecraft/server/integrated/IntegratedServer;forcedGameMode:Lnet/minecraft/world/GameMode;
-
lanPinger
private LanServerPinger lanPinger
- Mappings:
Namespace Name Mixin selector official uLezh;u:Lezk;intermediary field_5519Lnet/minecraft/class_1132;field_5519:Lnet/minecraft/class_1133;named lanPingerLnet/minecraft/server/integrated/IntegratedServer;lanPinger:Lnet/minecraft/server/LanServerPinger;
-
localPlayerUuid
private UUID localPlayerUuid
- Mappings:
Namespace Name Mixin selector official vLezh;v:Ljava/util/UUID;intermediary field_5521Lnet/minecraft/class_1132;field_5521:Ljava/util/UUID;named localPlayerUuidLnet/minecraft/server/integrated/IntegratedServer;localPlayerUuid:Ljava/util/UUID;
-
-
构造器详细资料
-
IntegratedServer
public IntegratedServer(Thread serverThread, MinecraftClient client, DynamicRegistryManager.Impl registryManager, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, SaveProperties saveProperties, com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.GameProfileRepository gameProfileRepo, UserCache userCache, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory)
- Mappings:
Namespace Name Mixin selector official <init>Lezh;<init>(Ljava/lang/Thread;Ldum;Lgs$b;Ldhb$a;Lada;Lxd;Ldhi;Lcom/mojang/authlib/minecraft/MinecraftSessionService;Lcom/mojang/authlib/GameProfileRepository;Ladv;Labt;)Vintermediary <init>Lnet/minecraft/class_1132;<init>(Ljava/lang/Thread;Lnet/minecraft/class_310;Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_3283;Lnet/minecraft/class_5350;Lnet/minecraft/class_5219;Lcom/mojang/authlib/minecraft/MinecraftSessionService;Lcom/mojang/authlib/GameProfileRepository;Lnet/minecraft/class_3312;Lnet/minecraft/class_3950;)Vnamed <init>Lnet/minecraft/server/integrated/IntegratedServer;<init>(Ljava/lang/Thread;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/resource/ServerResourceManager;Lnet/minecraft/world/SaveProperties;Lcom/mojang/authlib/minecraft/MinecraftSessionService;Lcom/mojang/authlib/GameProfileRepository;Lnet/minecraft/util/UserCache;Lnet/minecraft/server/WorldGenerationProgressListenerFactory;)V
-
-
方法详细资料
-
setupServer
public boolean setupServer()
Setups a Minecraft server to be ready for players to connect. This method does several things including loading server properties and loading worlds.- 指定者:
setupServer在类中MinecraftServer- 返回:
- true if the Minecraft server was successfully setup, false if the server failed to be setup.
- Mappings:
Namespace Name Mixin selector official dLnet/minecraft/server/MinecraftServer;d()Zintermediary method_3823Lnet/minecraft/server/MinecraftServer;method_3823()Znamed setupServerLnet/minecraft/server/MinecraftServer;setupServer()Z
-
tick
public void tick(BooleanSupplier shouldKeepTicking)
- 覆盖:
tick在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Ljava/util/function/BooleanSupplier;)Vintermediary method_3748Lnet/minecraft/server/MinecraftServer;method_3748(Ljava/util/function/BooleanSupplier;)Vnamed tickLnet/minecraft/server/MinecraftServer;tick(Ljava/util/function/BooleanSupplier;)V
-
shouldBroadcastRconToOps
public boolean shouldBroadcastRconToOps()
- 指定者:
shouldBroadcastRconToOps在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official iLnet/minecraft/server/MinecraftServer;i()Zintermediary method_3732Lnet/minecraft/server/MinecraftServer;method_3732()Znamed shouldBroadcastRconToOpsLnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()
- 指定者:
shouldBroadcastConsoleToOps在接口中CommandOutput- 指定者:
shouldBroadcastConsoleToOps在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official R_Ldf;R_()Zintermediary method_9201Lnet/minecraft/class_2165;method_9201()Znamed shouldBroadcastConsoleToOpsLnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
-
getRunDirectory
public File getRunDirectory()
- 覆盖:
getRunDirectory在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official BLnet/minecraft/server/MinecraftServer;B()Ljava/io/File;intermediary method_3831Lnet/minecraft/server/MinecraftServer;method_3831()Ljava/io/File;named getRunDirectoryLnet/minecraft/server/MinecraftServer;getRunDirectory()Ljava/io/File;
-
isDedicated
public boolean isDedicated()
Checks whether this server is a dedicated server.A dedicated server refers to a Minecraft server implementation which is detached from a parent Minecraft client process. A dedicated Minecraft server only accepts remote connections.
- 指定者:
isDedicated在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official jLnet/minecraft/server/MinecraftServer;j()Zintermediary method_3816Lnet/minecraft/server/MinecraftServer;method_3816()Znamed isDedicatedLnet/minecraft/server/MinecraftServer;isDedicated()Z
-
getRateLimit
public int getRateLimit()
- 指定者:
getRateLimit在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official kLnet/minecraft/server/MinecraftServer;k()Iintermediary method_30612Lnet/minecraft/server/MinecraftServer;method_30612()Inamed getRateLimitLnet/minecraft/server/MinecraftServer;getRateLimit()I
-
isUsingNativeTransport
public boolean isUsingNativeTransport()
- 指定者:
isUsingNativeTransport在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official lLnet/minecraft/server/MinecraftServer;l()Zintermediary method_3759Lnet/minecraft/server/MinecraftServer;method_3759()Znamed isUsingNativeTransportLnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Z
-
setCrashReport
public void setCrashReport(CrashReport report)
- 覆盖:
setCrashReport在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lq;)Vintermediary method_3744Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)Vnamed setCrashReportLnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)V
-
populateCrashReport
public CrashReport populateCrashReport(CrashReport report)
- 覆盖:
populateCrashReport在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official bLnet/minecraft/server/MinecraftServer;b(Lq;)Lq;intermediary method_3859Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_128;)Lnet/minecraft/class_128;named populateCrashReportLnet/minecraft/server/MinecraftServer;populateCrashReport(Lnet/minecraft/util/crash/CrashReport;)Lnet/minecraft/util/crash/CrashReport;
-
getModdedStatusMessage
public Optional<String> getModdedStatusMessage()
- 指定者:
getModdedStatusMessage在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official oLnet/minecraft/server/MinecraftServer;o()Ljava/util/Optional;intermediary method_24307Lnet/minecraft/server/MinecraftServer;method_24307()Ljava/util/Optional;named getModdedStatusMessageLnet/minecraft/server/MinecraftServer;getModdedStatusMessage()Ljava/util/Optional;
-
addSnooperInfo
public void addSnooperInfo(Snooper snooper)
- 指定者:
addSnooperInfo在接口中SnooperListener- 覆盖:
addSnooperInfo在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aLaro;a(Larn;)Vintermediary method_5495Lnet/minecraft/class_1279;method_5495(Lnet/minecraft/class_1276;)Vnamed addSnooperInfoLnet/minecraft/util/snooper/SnooperListener;addSnooperInfo(Lnet/minecraft/util/snooper/Snooper;)V
-
method_35033
public boolean method_35033()
- 指定者:
method_35033在接口中SnooperListener- 覆盖:
method_35033在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official ULaro;U()Zintermediary method_35033Lnet/minecraft/class_1279;method_35033()Znamed method_35033Lnet/minecraft/util/snooper/SnooperListener;method_35033()Z
-
openToLan
public boolean openToLan(@Nullable @Nullable GameMode gameMode, boolean cheatsAllowed, int port)
Opens a server for LAN connections. This is only supported on an integrated server, a dedicated server will always fail to open to LAN.- 覆盖:
openToLan在类中MinecraftServer- 参数:
gameMode- the game mode connecting players will have set by defaultcheatsAllowed- whether players on the server have operator permissionsport- the port to open up to LAN connections- 返回:
- whether the server was successfully opened to LAN
- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lbvo;ZI)Zintermediary method_3763Lnet/minecraft/server/MinecraftServer;method_3763(Lnet/minecraft/class_1934;ZI)Znamed openToLanLnet/minecraft/server/MinecraftServer;openToLan(Lnet/minecraft/world/GameMode;ZI)Z
-
shutdown
public void shutdown()
- 覆盖:
shutdown在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official tLnet/minecraft/server/MinecraftServer;t()Vintermediary method_3782Lnet/minecraft/server/MinecraftServer;method_3782()Vnamed shutdownLnet/minecraft/server/MinecraftServer;shutdown()V
-
stop
public void stop(boolean bool)
- 覆盖:
stop在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Z)Vintermediary method_3747Lnet/minecraft/server/MinecraftServer;method_3747(Z)Vnamed stopLnet/minecraft/server/MinecraftServer;stop(Z)V
-
isRemote
public boolean isRemote()
- 指定者:
isRemote在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official nLnet/minecraft/server/MinecraftServer;n()Zintermediary method_3860Lnet/minecraft/server/MinecraftServer;method_3860()Znamed isRemoteLnet/minecraft/server/MinecraftServer;isRemote()Z
-
getServerPort
public int getServerPort()
- 覆盖:
getServerPort在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official MLnet/minecraft/server/MinecraftServer;M()Iintermediary method_3756Lnet/minecraft/server/MinecraftServer;method_3756()Inamed getServerPortLnet/minecraft/server/MinecraftServer;getServerPort()I
-
setDefaultGameMode
public void setDefaultGameMode(GameMode gameMode)
- 覆盖:
setDefaultGameMode在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lbvo;)Vintermediary method_3838Lnet/minecraft/server/MinecraftServer;method_3838(Lnet/minecraft/class_1934;)Vnamed setDefaultGameModeLnet/minecraft/server/MinecraftServer;setDefaultGameMode(Lnet/minecraft/world/GameMode;)V
-
areCommandBlocksEnabled
public boolean areCommandBlocksEnabled()
Specifies whether command blocks can execute commands on the server.- 指定者:
areCommandBlocksEnabled在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official mLnet/minecraft/server/MinecraftServer;m()Zintermediary method_3812Lnet/minecraft/server/MinecraftServer;method_3812()Znamed areCommandBlocksEnabledLnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Z
-
getOpPermissionLevel
public int getOpPermissionLevel()
- 指定者:
getOpPermissionLevel在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official gLnet/minecraft/server/MinecraftServer;g()Iintermediary method_3798Lnet/minecraft/server/MinecraftServer;method_3798()Inamed getOpPermissionLevelLnet/minecraft/server/MinecraftServer;getOpPermissionLevel()I
-
getFunctionPermissionLevel
public int getFunctionPermissionLevel()
- 指定者:
getFunctionPermissionLevel在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official hLnet/minecraft/server/MinecraftServer;h()Iintermediary method_21714Lnet/minecraft/server/MinecraftServer;method_21714()Inamed getFunctionPermissionLevelLnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()I
-
setLocalPlayerUuid
public void setLocalPlayerUuid(UUID localPlayerUuid)
- Mappings:
Namespace Name Mixin selector official aLezh;a(Ljava/util/UUID;)Vintermediary method_4817Lnet/minecraft/class_1132;method_4817(Ljava/util/UUID;)Vnamed setLocalPlayerUuidLnet/minecraft/server/integrated/IntegratedServer;setLocalPlayerUuid(Ljava/util/UUID;)V
-
isHost
public boolean isHost(com.mojang.authlib.GameProfile profile)
- 指定者:
isHost在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Zintermediary method_19466Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Znamed isHostLnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Z
-
adjustTrackingDistance
public int adjustTrackingDistance(int initialDistance)
- 覆盖:
adjustTrackingDistance在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official bLnet/minecraft/server/MinecraftServer;b(I)Iintermediary method_27903Lnet/minecraft/server/MinecraftServer;method_27903(I)Inamed adjustTrackingDistanceLnet/minecraft/server/MinecraftServer;adjustTrackingDistance(I)I
-
syncChunkWrites
public boolean syncChunkWrites()
- 覆盖:
syncChunkWrites在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aTLnet/minecraft/server/MinecraftServer;aT()Zintermediary method_27051Lnet/minecraft/server/MinecraftServer;method_27051()Znamed syncChunkWritesLnet/minecraft/server/MinecraftServer;syncChunkWrites()Z
-
getForcedGameMode
@Nullable public @Nullable GameMode getForcedGameMode()
Returns the game mode a player should be set to when connecting to the server, ornullif none is set.- 覆盖:
getForcedGameMode在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official aYLnet/minecraft/server/MinecraftServer;aY()Lbvo;intermediary method_3761Lnet/minecraft/server/MinecraftServer;method_3761()Lnet/minecraft/class_1934;named getForcedGameModeLnet/minecraft/server/MinecraftServer;getForcedGameMode()Lnet/minecraft/world/GameMode;
-
-