批注接口 TestHolder
Annotation used by
AbstractTest
in order to collect information about a test.-
可选元素概要
可选元素修饰符和类型可选元素说明String[]
This usually contains instructions on how to use the test.boolean
返回 if this test is enabled by default。String[]
Returns the groups the test is in.net.neoforged.api.distmarker.Dist[]
返回 the sides this test should be registered on。返回 the human-readable title of the test。返回 the test's ID。
-
元素详细资料
-
value
String value返回 the test's ID。- 返回:
- the test's ID
- 默认值:
"compute"
-
groups
String[] groupsReturns the groups the test is in.
Note: if empty, it defaults toungrouped
.- 返回:
- the groups the test is in
- 另请参阅:
- 默认值:
{}
-
title
String title返回 the human-readable title of the test。- 返回:
- the human-readable title of the test
- 默认值:
""
-
description
String[] descriptionThis usually contains instructions on how to use the test. 返回 the human-readable description of the test。- 默认值:
{}
-
enabledByDefault
boolean enabledByDefault返回 if this test is enabled by default。- 返回:
- if this test is enabled by default
- 默认值:
false
-
side
net.neoforged.api.distmarker.Dist[] side返回 the sides this test should be registered on。- 返回:
- the sides this test should be registered on
- 默认值:
{CLIENT, DEDICATED_SERVER}
-