类 TestServer
- java.lang.Object
-
- net.minecraft.util.thread.ThreadExecutor<R>
-
- net.minecraft.util.thread.ReentrantThreadExecutor<ServerTask>
-
- net.minecraft.server.MinecraftServer
-
- net.minecraft.test.TestServer
-
- 所有已实现的接口:
AutoCloseable,Executor,CommandOutput,MetricSamplerSupplier,SnooperListener,MessageListener<ServerTask>
public class TestServer extends MinecraftServer
- Mappings:
Namespace Name official maintermediary net/minecraft/class_6306named net/minecraft/test/TestServer
-
-
字段概要
字段 修饰符和类型 字段 说明 private List<GameTestBatch>batchesprivate static Loggerfield_33156private static intfield_33157private static GameRulesgameRulesprivate BlockPosposprivate static LevelInfotestLevelprivate @Nullable TestSettestSet-
从类继承的字段 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
-
-
构造器概要
构造器 限定符 构造器 说明 TestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, Collection<GameTestBatch> batches, BlockPos pos, DynamicRegistryManager.Impl registryManager)privateTestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, Collection<GameTestBatch> batches, BlockPos pos, DynamicRegistryManager.Impl registryManager, Registry<Biome> biomeRegistry, Registry<DimensionType> dimensionTypeRegistry)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanareCommandBlocksEnabled()Specifies whether command blocks can execute commands on the server.voidexit()intgetFunctionPermissionLevel()Optional<String>getModdedStatusMessage()intgetOpPermissionLevel()intgetRateLimit()booleanisDedicated()Checks whether this server is a dedicated server.booleanisHardcore()booleanisHost(com.mojang.authlib.GameProfile profile)booleanisRemote()private booleanisTesting()booleanisUsingNativeTransport()private voidrunTestBatches(ServerWorld world)voidsetCrashReport(CrashReport report)booleansetupServer()Setups a Minecraft server to be ready for players to connect.booleanshouldBroadcastConsoleToOps()booleanshouldBroadcastRconToOps()voidtick(BooleanSupplier shouldKeepTicking)-
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsStatusQuery, addServerGuiTickable, addSnooperInfo, adjustTrackingDistance, canExecute, close, convertLevel, createFilterer, createTask, createWorlds, dump, enableProfiler, executeTask, forcePlayerSampleUpdate, generateKeyPair, getAdvancementLoader, getBossBarManager, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataPackManager, getDefaultGameMode, getFile, getForcedGameMode, getGameProfileRepo, getGameRules, getIconFile, getItemModifierManager, getKeyPair, getLootManager, getMaxPlayerCount, getMaxWorldBorderRadius, getMetricsData, getNetworkCompressionThreshold, getNetworkIo, getOverworld, getPermissionLevel, getPlayerIdleTimeout, getPlayerInteractionManager, getPlayerManager, getPlayerNames, getPredicateManager, getProfiler, getRecipeManager, getRegistryManager, getResourcePackHash, getResourcePackUrl, getRunDirectory, getSavePath, getSaveProperties, getScoreboard, getServerIp, getServerMetadata, getServerModName, getServerMotd, getServerPort, getServerStartTime, getSessionService, getSnooper, getSpawnProtectionRadius, getSpawnRadius, getStructureManager, getTagManager, getThread, getTicks, getTickTime, getUserCache, getUserName, getVersion, getWorld, getWorldRegistryKeys, getWorlds, hasGui, hasIconFile, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPvpEnabled, isRunning, isSinglePlayer, isSpawnProtected, isStopped, isStopping, kickNonWhitelistedPlayers, loadDataPacks, loadWorld, loadWorldResourcePack, method_16208, method_34864, method_35033, method_35034, method_36113, openToLan, populateCrashReport, reloadResources, requireResourcePack, runServer, runTask, save, sendSystemMessage, setDefaultGameMode, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightEnabled, setMotd, setOnlineMode, setPlayerIdleTimeout, setPlayerManager, setPreventProxyConnections, setPvpEnabled, setResourcePack, setServerId, setServerIp, setServerName, setServerPort, shouldExecuteAsync, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, shutdown, startServer, stop, stopDebug, syncChunkWrites, 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_33156
private static final Logger field_33156
- Mappings:
Namespace Name Mixin selector official pLma;p:Lorg/apache/logging/log4j/Logger;intermediary field_33156Lnet/minecraft/class_6306;field_33156:Lorg/apache/logging/log4j/Logger;named field_33156Lnet/minecraft/test/TestServer;field_33156:Lorg/apache/logging/log4j/Logger;
-
field_33157
private static final int field_33157
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official qLma;q:Iintermediary field_33157Lnet/minecraft/class_6306;field_33157:Inamed field_33157Lnet/minecraft/test/TestServer;field_33157:I
-
gameRules
private static final GameRules gameRules
- Mappings:
Namespace Name Mixin selector official tLma;t:Lbvn;intermediary field_33160Lnet/minecraft/class_6306;field_33160:Lnet/minecraft/class_1928;named gameRulesLnet/minecraft/test/TestServer;gameRules:Lnet/minecraft/world/GameRules;
-
testLevel
private static final LevelInfo testLevel
- Mappings:
Namespace Name Mixin selector official uLma;u:Lbvv;intermediary field_33161Lnet/minecraft/class_6306;field_33161:Lnet/minecraft/class_1940;named testLevelLnet/minecraft/test/TestServer;testLevel:Lnet/minecraft/world/level/LevelInfo;
-
batches
private final List<GameTestBatch> batches
- Mappings:
Namespace Name Mixin selector official rLma;r:Ljava/util/List;intermediary field_33158Lnet/minecraft/class_6306;field_33158:Ljava/util/List;named batchesLnet/minecraft/test/TestServer;batches:Ljava/util/List;
-
pos
private final BlockPos pos
- Mappings:
Namespace Name Mixin selector official sLma;s:Lgb;intermediary field_33159Lnet/minecraft/class_6306;field_33159:Lnet/minecraft/class_2338;named posLnet/minecraft/test/TestServer;pos:Lnet/minecraft/util/math/BlockPos;
-
-
构造器详细资料
-
TestServer
public TestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, Collection<GameTestBatch> batches, BlockPos pos, DynamicRegistryManager.Impl registryManager)
- Mappings:
Namespace Name Mixin selector official <init>Lma;<init>(Ljava/lang/Thread;Ldhb$a;Lada;Lxd;Ljava/util/Collection;Lgb;Lgs$b;)Vintermediary <init>Lnet/minecraft/class_6306;<init>(Ljava/lang/Thread;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_3283;Lnet/minecraft/class_5350;Ljava/util/Collection;Lnet/minecraft/class_2338;Lnet/minecraft/class_5455$class_5457;)Vnamed <init>Lnet/minecraft/test/TestServer;<init>(Ljava/lang/Thread;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/resource/ServerResourceManager;Ljava/util/Collection;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;)V
-
TestServer
private TestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, ServerResourceManager serverResourceManager, Collection<GameTestBatch> batches, BlockPos pos, DynamicRegistryManager.Impl registryManager, Registry<Biome> biomeRegistry, Registry<DimensionType> dimensionTypeRegistry)
- Mappings:
Namespace Name Mixin selector official <init>Lma;<init>(Ljava/lang/Thread;Ldhb$a;Lada;Lxd;Ljava/util/Collection;Lgb;Lgs$b;Lgr;Lgr;)Vintermediary <init>Lnet/minecraft/class_6306;<init>(Ljava/lang/Thread;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_3283;Lnet/minecraft/class_5350;Ljava/util/Collection;Lnet/minecraft/class_2338;Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;)Vnamed <init>Lnet/minecraft/test/TestServer;<init>(Ljava/lang/Thread;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/resource/ServerResourceManager;Ljava/util/Collection;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;)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
-
exit
public void exit()
- 覆盖:
exit在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official eLnet/minecraft/server/MinecraftServer;e()Vintermediary method_3821Lnet/minecraft/server/MinecraftServer;method_3821()Vnamed exitLnet/minecraft/server/MinecraftServer;exit()V
-
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
-
runTestBatches
private void runTestBatches(ServerWorld world)
- Mappings:
Namespace Name Mixin selector official bLma;b(Labj;)Vintermediary method_36096Lnet/minecraft/class_6306;method_36096(Lnet/minecraft/class_3218;)Vnamed runTestBatchesLnet/minecraft/test/TestServer;runTestBatches(Lnet/minecraft/server/world/ServerWorld;)V
-
isTesting
private boolean isTesting()
- Mappings:
Namespace Name Mixin selector official bbLma;bb()Zintermediary method_36098Lnet/minecraft/class_6306;method_36098()Znamed isTestingLnet/minecraft/test/TestServer;isTesting()Z
-
isHardcore
public boolean isHardcore()
- 覆盖:
isHardcore在类中MinecraftServer- Mappings:
Namespace Name Mixin selector official fLnet/minecraft/server/MinecraftServer;f()Zintermediary method_3754Lnet/minecraft/server/MinecraftServer;method_3754()Znamed isHardcoreLnet/minecraft/server/MinecraftServer;isHardcore()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
-
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
-
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
-
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
-
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
-
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
-
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
-
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;
-
-