Interface ICustomConfigurationTask
- All Superinterfaces:
ConfigurationTask
- All Known Implementing Classes:
RegistryDataMapNegotiation
,SyncConfig
,SyncRegistries
Defines a custom configuration task that should be run when a client connects.
This interface is a wrapper functional interface around ConfigurationTask
.
Allowing for easily sending custom payloads to the client, without having to perform the wrapping
in ClientboundCustomPayloadPacket
yourself.
It is recommended to use this interface over ConfigurationTask
when you need to send custom payloads.
It's functionality is otherwise identical.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
ConfigurationTask.Type
-
Method Summary
Methods inherited from interface net.minecraft.server.network.ConfigurationTask
type
-
Method Details
-
run
Invoked when it is time for this configuration to run.- Parameters:
sender
- A consumer that accepts aCustomPacketPayload
to send to the client.
-
start
Invoked when it is time for this configuration to run.- Specified by:
start
in interfaceConfigurationTask
- Parameters:
sender
- A consumer that accepts aPacket
to send to the client.
-