Record Class ApothStats
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.common.compat.apotheosis.ApothStats
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApothStats(float eterna, float quanta, float arcana, int clues) Creates an instance of aApothStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatarcana()Returns the value of thearcanarecord component.intclues()Returns the value of thecluesrecord component.static ApothStatsdecode(net.minecraft.network.FriendlyByteBuf buffer) voidencode(net.minecraft.network.FriendlyByteBuf buffer) final booleanIndicates whether some other object is "equal to" this one.floateterna()Returns the value of theeternarecord component.final inthashCode()Returns a hash code value for this object.floatquanta()Returns the value of thequantarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ApothStats
public ApothStats(float eterna, float quanta, float arcana, int clues) Creates an instance of aApothStatsrecord class.- Parameters:
eterna- the value for theeternarecord componentquanta- the value for thequantarecord componentarcana- the value for thearcanarecord componentclues- the value for thecluesrecord component
-
-
Method Details
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buffer) -
decode
-
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. -
hashCode
public final 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 '=='. -
eterna
public float eterna()Returns the value of theeternarecord component.- Returns:
- the value of the
eternarecord component
-
quanta
public float quanta()Returns the value of thequantarecord component.- Returns:
- the value of the
quantarecord component
-
arcana
public float arcana()Returns the value of thearcanarecord component.- Returns:
- the value of the
arcanarecord component
-
clues
public int clues()Returns the value of thecluesrecord component.- Returns:
- the value of the
cluesrecord component
-