Interface FabricServerConfigurationNetworkHandler
public interface FabricServerConfigurationNetworkHandler
Fabric-provided extensions for
ServerConfigurationNetworkHandler
.
This interface is automatically implemented via Mixin and interface injection.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Enqueues aServerPlayerConfigurationTask
task to be processed.default void
Completes the task identified bykey
.
-
Method Details
-
addTask
Enqueues aServerPlayerConfigurationTask
task to be processed.Before adding a task use
ServerConfigurationNetworking.canSend(ServerConfigurationNetworkHandler, Identifier)
to ensure that the client can process this task.Once the client has handled the task a packet should be sent to the server. Upon receiving this packet the server should call
completeTask(ServerPlayerConfigurationTask.Key)
, otherwise the client cannot join the world.- Parameters:
task
- the task
-
completeTask
Completes the task identified bykey
.- Parameters:
key
- the task key- Throws:
IllegalStateException
- if the current task is notkey
-