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