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 voidEnqueue aServerPlayerConfigurationTasktask to be processed.default void
-
Method Details
-
addTask
Enqueue aServerPlayerConfigurationTasktask 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)- Parameters:
task- the task
-
completeTask
- Parameters:
key- the key
-