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