Record Class CorporeaResultImpl
java.lang.Object
java.lang.Record
vazkii.botania.common.impl.corporea.CorporeaResultImpl
- All Implemented Interfaces:
CorporeaResult
public record CorporeaResultImpl(List<net.minecraft.world.item.ItemStack> stacks, int matchedCount, int extractedCount, it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> matchCountsByNode)
extends Record
implements CorporeaResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface vazkii.botania.api.corporea.CorporeaResult
CorporeaResult.Dummy -
Constructor Summary
ConstructorsConstructorDescriptionCorporeaResultImpl(List<net.minecraft.world.item.ItemStack> stacks, int matchedCount, int extractedCount, it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> matchCountsByNode) Creates an instance of aCorporeaResultImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextractedCountrecord component.final inthashCode()Returns a hash code value for this object.it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> Returns the value of thematchCountsByNoderecord component.intReturns the value of thematchedCountrecord component.List<net.minecraft.world.item.ItemStack> stacks()Returns the value of thestacksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CorporeaResultImpl
public CorporeaResultImpl(List<net.minecraft.world.item.ItemStack> stacks, int matchedCount, int extractedCount, it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> matchCountsByNode) Creates an instance of aCorporeaResultImplrecord class.- Parameters:
stacks- the value for thestacksrecord componentmatchedCount- the value for thematchedCountrecord componentextractedCount- the value for theextractedCountrecord componentmatchCountsByNode- the value for thematchCountsByNoderecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
stacks
Returns the value of thestacksrecord component.- Specified by:
stacksin interfaceCorporeaResult- Returns:
- the value of the
stacksrecord component
-
matchedCount
public int matchedCount()Returns the value of thematchedCountrecord component.- Specified by:
matchedCountin interfaceCorporeaResult- Returns:
- the value of the
matchedCountrecord component
-
extractedCount
public int extractedCount()Returns the value of theextractedCountrecord component.- Specified by:
extractedCountin interfaceCorporeaResult- Returns:
- the value of the
extractedCountrecord component
-
matchCountsByNode
Returns the value of thematchCountsByNoderecord component.- Specified by:
matchCountsByNodein interfaceCorporeaResult- Returns:
- the value of the
matchCountsByNoderecord component
-