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

    Constructors
    Constructor
    Description
    CorporeaResultImpl(List<net.minecraft.world.item.ItemStack> stacks, int matchedCount, int extractedCount, it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> matchCountsByNode)
    Creates an instance of a CorporeaResultImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the extractedCount record component.
    final int
    Returns a hash code value for this object.
    it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode>
    Returns the value of the matchCountsByNode record component.
    int
    Returns the value of the matchedCount record component.
    List<net.minecraft.world.item.ItemStack>
    Returns the value of the stacks record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a CorporeaResultImpl record class.
      Parameters:
      stacks - the value for the stacks record component
      matchedCount - the value for the matchedCount record component
      extractedCount - the value for the extractedCount record component
      matchCountsByNode - the value for the matchCountsByNode record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • stacks

      public List<net.minecraft.world.item.ItemStack> stacks()
      Returns the value of the stacks record component.
      Specified by:
      stacks in interface CorporeaResult
      Returns:
      the value of the stacks record component
    • matchedCount

      public int matchedCount()
      Returns the value of the matchedCount record component.
      Specified by:
      matchedCount in interface CorporeaResult
      Returns:
      the value of the matchedCount record component
    • extractedCount

      public int extractedCount()
      Returns the value of the extractedCount record component.
      Specified by:
      extractedCount in interface CorporeaResult
      Returns:
      the value of the extractedCount record component
    • matchCountsByNode

      public it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> matchCountsByNode()
      Returns the value of the matchCountsByNode record component.
      Specified by:
      matchCountsByNode in interface CorporeaResult
      Returns:
      the value of the matchCountsByNode record component