Record Class ChatFormattingMapping
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcore.api.utils.ChatFormattingMapping
A mapping of percentage thresholds to corresponding ChatFormatting styles.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents an individual percentage threshold and its associated chat formatting styles. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ChatFormattingMapping with the provided entries.ChatFormattingMapping(ChatFormattingMapping.Entry... entries) Constructs a new ChatFormattingMapping with the provided entries. -
Method Summary
Modifier and TypeMethodDescriptionentries()Retrieves the list of formatting entries.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatFormattingMapping
Constructs a new ChatFormattingMapping with the provided entries.- Parameters:
entries- The percentage-based formatting entries.
-
ChatFormattingMapping
Constructs a new ChatFormattingMapping with the provided entries.- Parameters:
entries- The percentage-based formatting entries.
-
-
Method Details
-
entries
Retrieves the list of formatting entries.- Returns:
- The list of formatting mappings.
-
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).
-