Package de.chojo.universalis.entities
Record Class ItemMeta
java.lang.Object
java.lang.Record
de.chojo.universalis.entities.ItemMeta
- Record Components:
hq
- hq qualitycrafted
- true if craftedstainId
- stain idmateria
- materia views
public record ItemMeta(boolean hq, boolean crafted, int stainId, List<MateriaView> materia)
extends Record
Meta of an item
-
Constructor Summary
ConstructorsConstructorDescriptionItemMeta
(boolean hq, boolean crafted, int stainId, List<MateriaView> materia) Creates an instance of aItemMeta
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
crafted()
Returns the value of thecrafted
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hq()
Returns the value of thehq
record component.materia()
Returns the value of themateria
record component.int
stainId()
Returns the value of thestainId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hq
public boolean hq()Returns the value of thehq
record component.- Returns:
- the value of the
hq
record component
-
crafted
public boolean crafted()Returns the value of thecrafted
record component.- Returns:
- the value of the
crafted
record component
-
stainId
public int stainId()Returns the value of thestainId
record component.- Returns:
- the value of the
stainId
record component
-
materia
Returns the value of themateria
record component.- Returns:
- the value of the
materia
record component
-