Class OnGameConfigurationEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.network.event.OnGameConfigurationEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class OnGameConfigurationEvent
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Queue<ICustomConfigurationTask>
private final ServerConfigurationPacketListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration tasks that have been registered.Get the server configuration packet listener.void
Register a configuration task to be run on the server.Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Field Details
-
listener
-
configurationTasks
-
-
Constructor Details
-
OnGameConfigurationEvent
-
-
Method Details
-
register
Register a configuration task to be run on the server.- Parameters:
task
- The task to run.
-
getConfigurationTasks
Get the configuration tasks that have been registered.- Returns:
- The configuration tasks.
-
getListener
Get the server configuration packet listener.- Returns:
- The server configuration packet listener.
-