类 RegisterGameTestsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.RegisterGameTestsEvent
- 所有已实现的接口:
IModBusEvent
public class RegisterGameTestsEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
Game tests are registered on client or server startup.
It is only run once for a given instance of the game if
ForgeGameTestHooks.isGametestEnabled()
returns true.
This is the preferred way to register your game tests.
Fired on the Mod bus, see IModBusEvent
.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
gameTestMethods
-
-
构造器详细资料
-
RegisterGameTestsEvent
-
-
方法详细资料
-
register
Registers an entire class to the game test registry. All methods annotated withGameTest
orGameTestGenerator
will be registered. If the set of enabled batches is non-empty, a method will only be registered if itsbatch
is listed.- 参数:
testClass
- the test class to register to the game test registry
-
register
Registers a single method to the game test registry. The method will only be registered if it is annotated withGameTest
orGameTestGenerator
. If the set of enabled batches is non-empty, the method will only be registered if itsbatch
is listed.- 参数:
testMethod
- the test method to register to the game test registry
-