Contents
Record Class ItemContainer.TempItemData
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.inventory.container.ItemContainer.TempItemData
- Enclosing class:
ItemContainer
-
Constructor Summary
ConstructorsConstructorDescriptionTempItemData(ItemStack itemStack, Item item) Creates an instance of aTempItemDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.Returns the value of theitemStackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TempItemData
-
-
Method Details
-
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
-
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-