Record Class NativeCookingRecipeSelection.Slot
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.container.NativeCookingRecipeSelection.Slot
- Enclosing class:
NativeCookingRecipeSelection
public static record NativeCookingRecipeSelection.Slot(Container owner, int index, ContainerEnumName collection)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSlot(Container owner, int index, ContainerEnumName collection) Creates an instance of aSlotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Slot
Creates an instance of aSlotrecord class.- Parameters:
owner- the value for theownerrecord componentindex- the value for theindexrecord componentcollection- the value for thecollectionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-