Record Class Hex32
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.util.Hex32
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Hex32crc32(Path file, @Nullable LongConsumer callback) booleanIndicates 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 StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
STRING_CODEC
-
INT_CODEC
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Hex32> STREAM_CODEC -
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
-
crc32
- Throws:
IOException
-
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
-
raw
public int raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-