Record Class CommonConfigHashInformPacket
java.lang.Object
java.lang.Record
top.r3944realms.superleadrope.network.toClient.CommonConfigHashInformPacket
The type Common config hash inform packet.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static CommonConfigHashInformPacketdecode(net.minecraft.network.FriendlyByteBuf buffer) Decode common config hash inform packet.static voidencode(CommonConfigHashInformPacket packet, net.minecraft.network.FriendlyByteBuf buffer) Encode.final boolean指示某个其他对象是否“等于”此对象。static voidhandle(CommonConfigHashInformPacket packet, Supplier<net.minecraftforge.network.NetworkEvent.Context> ctx) Handle.inthash()返回hash记录组件的值。final inthashCode()返回此对象的哈希代码值。final StringtoString()返回此记录的字符串表示形式。
-
构造器详细资料
-
CommonConfigHashInformPacket
public CommonConfigHashInformPacket(int hash) 创建CommonConfigHashInformPacket记录的实例。- 参数:
hash-hash记录组件的值
-
-
方法详细资料
-
encode
public static void encode(CommonConfigHashInformPacket packet, net.minecraft.network.FriendlyByteBuf buffer) Encode.- 参数:
packet- the packetbuffer- the buffer
-
decode
Decode common config hash inform packet.- 参数:
buffer- the buffer- 返回:
- the common config hash inform packet
-
handle
public static void handle(CommonConfigHashInformPacket packet, Supplier<net.minecraftforge.network.NetworkEvent.Context> ctx) Handle.- 参数:
packet- the packetctx- the ctx
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用 '==' 进行比较。 -
hash
public int hash()返回hash记录组件的值。- 返回:
hash记录组件的值
-