Record Class CreativeCatalog.CollectionEntry
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CreativeCatalog.CollectionEntry
- Enclosing class:
CreativeCatalog
public static record CreativeCatalog.CollectionEntry(BedrockItem item, CreativeCatalog.Entry catalogEntry)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionEntry(BedrockItem item, CreativeCatalog.Entry catalogEntry) Creates an instance of aCollectionEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecatalogEntryrecord component.final 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollectionEntry
Creates an instance of aCollectionEntryrecord class.- Parameters:
item- the value for theitemrecord componentcatalogEntry- the value for thecatalogEntryrecord component
-
-
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). -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
catalogEntry
Returns the value of thecatalogEntryrecord component.- Returns:
- the value of the
catalogEntryrecord component
-