Record Class WithAnyPotionSlotDisplay
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.WithAnyPotionSlotDisplay
- All Implemented Interfaces:
SlotDisplay
-
Constructor Summary
ConstructorsConstructorDescriptionWithAnyPotionSlotDisplay(SlotDisplay display) Creates an instance of aWithAnyPotionSlotDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WithAnyPotionSlotDisplay
Creates an instance of aWithAnyPotionSlotDisplayrecord class.- Parameters:
display- the value for thedisplayrecord 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). -
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-