Record Class TagSlotDisplay
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.TagSlotDisplay
- All Implemented Interfaces:
SlotDisplay
-
Constructor Summary
ConstructorsConstructorDescriptionTagSlotDisplay(String tag) Creates an instance of aTagSlotDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TagSlotDisplay
Creates an instance of aTagSlotDisplayrecord class.- Parameters:
tag- the value for thetagrecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlotDisplay
-
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). -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-