类 RegisterConfigurationTasksEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.network.event.RegisterConfigurationTasksEvent
- 所有已实现的接口:
net.neoforged.fml.event.IModBusEvent
public class RegisterConfigurationTasksEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Fired when the server configuration packet listener collects all the configuration tasks
that should be run on the server to configure the client.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get the configuration tasks that have been registered.Get the server configuration packet listener.void
register
(ConfigurationTask task) Register a configuration task to be run on the server.
-
字段详细资料
-
listener
-
configurationTasks
-
-
构造器详细资料
-
RegisterConfigurationTasksEvent
-
-
方法详细资料
-
register
Register a configuration task to be run on the server.If you need to send payloads during your task, extend
ICustomConfigurationTask
instead ofConfigurationTask
.- 参数:
task
- The task to run.
-
getConfigurationTasks
Get the configuration tasks that have been registered.- 返回:
- The configuration tasks.
-
getListener
Get the server configuration packet listener.- 返回:
- The server configuration packet listener.
-