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
-
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 thecomparemethod from their corresponding wrapper classes. -
toString
-
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
-