记录类 RedstoneWireOrientationsDebugPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.RedstoneWireOrientationsDebugPayload
- 所有已实现的接口:
CustomPacketPayload
public record RedstoneWireOrientationsDebugPayload(long time, List<RedstoneWireOrientationsDebugPayload.Wire> wires)
extends Record
implements CustomPacketPayload
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.network.protocol.common.custom.CustomPacketPayload
CustomPacketPayload.FallbackProvider<B extends FriendlyByteBuf>, CustomPacketPayload.Type<T extends CustomPacketPayload>, CustomPacketPayload.TypeAndCodec<B extends FriendlyByteBuf,
T extends CustomPacketPayload> -
字段概要
字段修饰符和类型字段说明static final StreamCodec
<FriendlyByteBuf, RedstoneWireOrientationsDebugPayload> private final long
time
记录组件的字段。static final CustomPacketPayload.Type
<RedstoneWireOrientationsDebugPayload> private final List
<RedstoneWireOrientationsDebugPayload.Wire> wires
记录组件的字段。 -
构造器概要
构造器构造器说明RedstoneWireOrientationsDebugPayload
(long time, List<RedstoneWireOrientationsDebugPayload.Wire> wires) 创建RedstoneWireOrientationsDebugPayload
记录类的实例。 -
方法概要
-
字段详细资料
-
time
private final long timetime
记录组件的字段。 -
wires
wires
记录组件的字段。 -
TYPE
-
STREAM_CODEC
-
-
构造器详细资料
-
RedstoneWireOrientationsDebugPayload
public RedstoneWireOrientationsDebugPayload(long time, List<RedstoneWireOrientationsDebugPayload.Wire> wires) 创建RedstoneWireOrientationsDebugPayload
记录类的实例。- 参数:
time
-time
记录组件的值wires
-wires
记录组件的值
-
-
方法详细资料
-
type
- 指定者:
type
在接口中CustomPacketPayload
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
time
public long time()返回time
记录组件的值。- 返回:
time
记录组件的值
-
wires
返回wires
记录组件的值。- 返回:
wires
记录组件的值
-