Package dev.latvian.mods.klib.util
Record Class Hex32
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.util.Hex32
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Hex32> static final com.mojang.serialization.Codec<Hex32> static final com.mojang.serialization.Codec<Hex32> static final com.mojang.serialization.Codec<Hex32> static final Hex32static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Hex32> static final com.mojang.serialization.Codec<Hex32> -
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 Hex32of(int id) static Hex32intraw()Returns the value of therawrecord component.@NotNull String@NotNull StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
STRING_CODEC
-
LENIENT_STRING_CODEC
-
INT_CODEC
-
CODEC
-
LENIENT_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Hex32> STREAM_CODEC -
DATA_TYPE
-
LENIENT_DATA_TYPE
-
-
Constructor Details
-
Hex32
public Hex32(int raw) Creates an instance of aHex32record 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. -
toLenientString
-
raw
public int raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-