类 AbstractTest

java.lang.Object
net.neoforged.testframework.impl.test.AbstractTest
所有已实现的接口:
Groupable, Test
直接已知子类:
AbstractTest.Dynamic

@ParametersAreNonnullByDefault public abstract class AbstractTest extends Object implements Test
  • 字段详细资料

  • 构造器详细资料

    • AbstractTest

      protected AbstractTest()
  • 方法详细资料

    • configureFrom

      protected final void configureFrom(AbstractTest.AnnotationHolder holder)
    • configureGameTest

      protected final void configureGameTest(@Nullable @Nullable GameTest gameTest, @Nullable @Nullable EmptyTemplate template)
    • gameTestTemplate

      protected String gameTestTemplate(GameTest gameTest)
    • init

      public void init(TestFramework framework)
      从接口复制的说明: Test
      This method is called when the test is registered to a TestFramework.
      指定者:
      init 在接口中 Test
      参数:
      framework - the framework the test has been registered to
    • onDisabled

      public void onDisabled()
      从接口复制的说明: Test
      This method is called when this test is disabled.
      指定者:
      onDisabled 在接口中 Test
    • onEnabled

      public void onEnabled(Test.EventListenerGroup buses)
      从接口复制的说明: Test
      This method is called when this test is enabled.
      指定者:
      onEnabled 在接口中 Test
      参数:
      buses - a collector for event listeners. Prefer using this listener instead of the casual IEventBus.addListener(Consumer) or IEventBus.register(Object), as the collector will automatically unregister listeners when the test is disabled
    • onGameTest

      protected void onGameTest(GameTestHelper helper)
    • id

      public String id()
      从接口复制的说明: Test
      返回 the ID of this test。
      指定者:
      id 在接口中 Test
      返回:
      the ID of this test
    • enabledByDefault

      public boolean enabledByDefault()
      从接口复制的说明: Test
      返回 if this test is enabled by default。
      指定者:
      enabledByDefault 在接口中 Test
      返回:
      if this test is enabled by default
    • visuals

      public Test.Visuals visuals()
      从接口复制的说明: Test
      返回 the visual information about the test。
      指定者:
      visuals 在接口中 Test
      返回:
      the visual information about the test
    • asGameTest

      @Nullable public @Nullable GameTestData asGameTest()
      从接口复制的说明: Test
      返回 the game test version of this test。
      指定者:
      asGameTest 在接口中 Test
      返回:
      the game test version of this test
    • listeners

      public Set<TestListener> listeners()
      从接口复制的说明: Test
      返回 the listeners of this test。
      指定者:
      listeners 在接口中 Test
      返回:
      the listeners of this test
    • groups

      public List<String> groups()
      从接口复制的说明: Test
      A list of the groups of this test.
      If this list is empty, the test will be only in the ungrouped group.
      指定者:
      groups 在接口中 Test
      返回:
      the groups of this test
    • isEnabled

      public boolean isEnabled()
    • enable

      public void enable()
    • logger

      public org.slf4j.Logger logger()
    • status

      public Test.Status status()
    • updateStatus

      public void updateStatus(Test.Status status, @Nullable @Nullable Entity changer)
    • fail

      protected void fail(String message)
    • pass

      protected void pass()
    • requestConfirmation

      public final void requestConfirmation(Player player, Component message)