Package dev.latvian.mods.klib.util
Record Class Hex64
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.util.Hex64
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.intintinthashCode()Returns a hash code value for this object.static Hex64of(long id) static Hex64longraw()Returns the value of therawrecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
STRING_CODEC
-
LONG_CODEC
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Hex64> STREAM_CODEC -
DATA_TYPE
-
-
Constructor Details
-
Hex64
public Hex64(long raw) Creates an instance of aHex64record class.- Parameters:
raw- the value for therawrecord component
-
-
Method Details
-
of
-
of
-
hashCode
public 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 '=='. -
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. -
getMostSignificantBits
public int getMostSignificantBits() -
getLeastSignificantBits
public int getLeastSignificantBits() -
raw
public long raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-