Record Class ChatIcons.Entry
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.util.ChatIcons.Entry
- Enclosing interface:
ChatIcons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the value of thecharacterrecord component.net.minecraft.network.chat.ComponentReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
character- the value for thecharacterrecord componentname- the value for thenamerecord componentcomponent- the value for thecomponentrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
character
public char character()Returns the value of thecharacterrecord component.- Returns:
- the value of the
characterrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
component
public net.minecraft.network.chat.Component component()Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-