Record Class ItemKey
java.lang.Object
java.lang.Record
zombie.scripting.objects.ItemKey
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ItemKeygetByItemKeyValue(String name) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.itemType()Returns the value of theitemTyperecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ItemKey
-
-
Method Details
-
getByName
-
getByItemKeyValue
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
itemType
Returns the value of theitemTyperecord component.- Returns:
- the value of the
itemTyperecord component
-