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