记录类 CommonVersionTask
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.configuration.CommonVersionTask
- 所有已实现的接口:
ConfigurationTask
,ICustomConfigurationTask
Common Version configuration task. Initiated after registry sync to begin the c:register handshake.
The server will start the task, send c:version to the client, and await a reply. Upon reply, we transition to
CommonRegisterTask
.-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.network.ConfigurationTask
ConfigurationTask.Type
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从接口继承的方法 net.neoforged.neoforge.network.configuration.ICustomConfigurationTask
start
-
字段详细资料
-
TYPE
-
-
构造器详细资料
-
CommonVersionTask
public CommonVersionTask()创建CommonVersionTask
记录类的实例。
-
-
方法详细资料
-
type
- 指定者:
type
在接口中ConfigurationTask
-
run
从接口复制的说明:ICustomConfigurationTask
Invoked when it is time for this configuration to run.- 指定者:
run
在接口中ICustomConfigurationTask
- 参数:
sender
- A consumer that accepts aCustomPacketPayload
to send to the client.
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。
-