Record Class NativeRecipeCounter.Location
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.container.NativeRecipeCounter.Location
- Enclosing class:
NativeRecipeCounter
public static record NativeRecipeCounter.Location(ContainerEnumName collection, int slot)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLocation(ContainerEnumName collection, int slot) Creates an instance of aLocationrecord 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.intslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Location
Creates an instance of aLocationrecord class.- Parameters:
collection- the value for thecollectionrecord componentslot- the value for theslotrecord 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. -
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
slot
public int slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-