Package org.geysermc.geyser.item.custom
Record Class GeyserCustomItemIcons
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.GeyserCustomItemIcons
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.CustomItemIcons
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.geysermc.geyser.api.item.custom.v2.CustomItemIcons
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionGeyserCustomItemIcons(@Nullable String defaultIcon, @Nullable String dyedIcon) Creates an instance of aGeyserCustomItemIconsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedefaultIconrecord component.@Nullable StringdyedIcon()Returns the value of thedyedIconrecord component.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
-
GeyserCustomItemIcons
Creates an instance of aGeyserCustomItemIconsrecord class.- Parameters:
defaultIcon- the value for thedefaultIconrecord componentdyedIcon- the value for thedyedIconrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
defaultIcon
Returns the value of thedefaultIconrecord component.- Specified by:
defaultIconin interfaceorg.geysermc.geyser.api.item.custom.v2.CustomItemIcons- Returns:
- the value of the
defaultIconrecord component
-
dyedIcon
Returns the value of thedyedIconrecord component.- Specified by:
dyedIconin interfaceorg.geysermc.geyser.api.item.custom.v2.CustomItemIcons- Returns:
- the value of the
dyedIconrecord component
-