Record Class ItemLore
java.lang.Object
java.lang.Record
fr.fidorial.item.component.ItemLore
- Record Components:
lines- the lines, in the order they are drawn
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()lines()Returns the value of thelinesrecord component.static ItemLorestatic ItemLoreintsize()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAX_LINES
public static final int MAX_LINESThe most lines the client accepts.- See Also:
-
EMPTY
No lore at all.
-
-
Constructor Details
-
ItemLore
-
-
Method Details
-
of
-
of
-
plus
-
isEmpty
public boolean isEmpty()- Returns:
truewhen there is nothing to draw
-
size
public int size()- Returns:
- how many lines this lore holds
-
toString
-
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 withObjects::equals(Object,Object). -
lines
-