Record Class ItemStackSlotDisplay
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.ItemStackSlotDisplay
- All Implemented Interfaces:
SlotDisplay
-
Constructor Summary
ConstructorsConstructorDescriptionItemStackSlotDisplay(ItemStack itemStack) Creates an instance of aItemStackSlotDisplayrecord 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.Returns the value of theitemStackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemStackSlotDisplay
Creates an instance of aItemStackSlotDisplayrecord class.- Parameters:
itemStack- the value for theitemStackrecord 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). -
itemStack
Returns the value of theitemStackrecord component.- Returns:
- the value of the
itemStackrecord component
-