接口 ICustomConfigurationTask
- 所有超级接口:
ConfigurationTask
- 所有已知实现类:
CommonRegisterTask
,CommonVersionTask
,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.
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.network.ConfigurationTask
ConfigurationTask.Type
-
方法概要
从接口继承的方法 net.minecraft.server.network.ConfigurationTask
type
-
方法详细资料
-
run
Invoked when it is time for this configuration to run.- 参数:
sender
- A consumer that accepts aCustomPacketPayload
to send to the client.
-
start
Invoked when it is time for this configuration to run.- 指定者:
start
在接口中ConfigurationTask
- 参数:
sender
- A consumer that accepts aPacket
to send to the client.- Implementation Note:
- Please do not override this method, it is implemented to wrap the
CustomPacketPayload
in aClientboundCustomPayloadPacket
.
-