类 AbstractTest
java.lang.Object
net.neoforged.testframework.impl.test.AbstractTest
- 直接已知子类:
AbstractTest.Dynamic
-
嵌套类概要
嵌套类修饰符和类型类说明protected static interface
static class
从接口继承的嵌套类/接口 net.neoforged.testframework.Test
Test.EventListenerGroup, Test.Result, Test.Status, Test.Visuals
-
字段概要
字段修饰符和类型字段说明protected boolean
protected TestFramework
protected @Nullable GameTestData
protected String
protected final Set
<TestListener> protected Test.Visuals
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明@Nullable GameTestData
返回 the game test version of this test。protected final void
protected final void
configureGameTest
(@Nullable GameTest gameTest, @Nullable EmptyTemplate template) void
enable()
boolean
返回 if this test is enabled by default。protected void
protected String
gameTestTemplate
(GameTest gameTest) groups()
A list of the groups of this test.id()
返回 the ID of this test。void
init
(TestFramework framework) This method is called when the test is registered to aTestFramework
.boolean
返回 the listeners of this test。org.slf4j.Logger
logger()
void
This method is called when this test is disabled.void
onEnabled
(Test.EventListenerGroup buses) This method is called when this test is enabled.protected void
onGameTest
(GameTestHelper helper) protected void
pass()
final void
requestConfirmation
(Player player, Component message) status()
void
updateStatus
(Test.Status status, @Nullable Entity changer) visuals()
返回 the visual information about the test。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.testframework.Test
resolveAll, resolveAsStream
-
字段详细资料
-
framework
-
id
-
groups
-
enabledByDefault
protected boolean enabledByDefault -
visuals
-
gameTestData
-
listeners
-
-
构造器详细资料
-
AbstractTest
protected AbstractTest()
-
-
方法详细资料
-
configureFrom
-
configureGameTest
protected final void configureGameTest(@Nullable @Nullable GameTest gameTest, @Nullable @Nullable EmptyTemplate template) -
gameTestTemplate
-
init
从接口复制的说明:Test
This method is called when the test is registered to aTestFramework
. -
onDisabled
public void onDisabled()从接口复制的说明:Test
This method is called when this test is disabled.- 指定者:
onDisabled
在接口中Test
-
onEnabled
从接口复制的说明:Test
This method is called when this test is enabled. -
onGameTest
-
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
从接口复制的说明:Test
返回 the visual information about the test。 -
asGameTest
从接口复制的说明:Test
返回 the game test version of this test。- 指定者:
asGameTest
在接口中Test
- 返回:
- the game test version of this test
-
listeners
从接口复制的说明:Test
返回 the listeners of this test。 -
groups
从接口复制的说明:Test
A list of the groups of this test.
If this list is empty, the test will be only in theungrouped
group. -
isEnabled
public boolean isEnabled() -
enable
public void enable() -
logger
public org.slf4j.Logger logger() -
status
-
updateStatus
-
fail
-
pass
protected void pass() -
requestConfirmation
-