Record Class TrackGraphRollCallPacket.Entry
java.lang.Object
java.lang.Record
com.simibubi.create.content.trains.graph.TrackGraphRollCallPacket.Entry
- Enclosing class:
TrackGraphRollCallPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, TrackGraphRollCallPacket.Entry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchecksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnetId()Returns the value of thenetIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,TrackGraphRollCallPacket.Entry> STREAM_CODEC
-
-
Constructor Details
-
Entry
public Entry(int netId, int checksum) Creates an instance of aEntryrecord class.- Parameters:
netId- the value for thenetIdrecord componentchecksum- the value for thechecksumrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
netId
public int netId()Returns the value of thenetIdrecord component.- Returns:
- the value of the
netIdrecord component
-
checksum
public int checksum()Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-