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 aApothStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
arcana()
Returns the value of thearcana
record component.int
clues()
Returns the value of theclues
record component.static ApothStats
decode
(net.minecraft.network.FriendlyByteBuf buffer) void
encode
(net.minecraft.network.FriendlyByteBuf buffer) final boolean
Indicates whether some other object is "equal to" this one.float
eterna()
Returns the value of theeterna
record component.final int
hashCode()
Returns a hash code value for this object.float
quanta()
Returns the value of thequanta
record component.final String
toString()
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 aApothStats
record class.- Parameters:
eterna
- the value for theeterna
record componentquanta
- the value for thequanta
record componentarcana
- the value for thearcana
record componentclues
- the value for theclues
record 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 theeterna
record component.- Returns:
- the value of the
eterna
record component
-
quanta
public float quanta()Returns the value of thequanta
record component.- Returns:
- the value of the
quanta
record component
-
arcana
public float arcana()Returns the value of thearcana
record component.- Returns:
- the value of the
arcana
record component
-
clues
public int clues()Returns the value of theclues
record component.- Returns:
- the value of the
clues
record component
-