Interface CorporeaResult

All Known Implementing Classes:
CorporeaResult.Dummy, CorporeaResultImpl

public interface CorporeaResult
Represents a completed CorporeaRequest
  • Method Details

    • stacks

      default List<net.minecraft.world.item.ItemStack> stacks()
      Returns:
      The itemstacks found. Not a fresh copy each time called. When doing a count, and not extracting, the stacks in this list may be oversized.
    • matchedCount

      default int matchedCount()
      Returns:
      The number of items matching the request's matcher.
    • extractedCount

      default int extractedCount()
      Returns:
      The number of items extracted.
    • matchCountsByNode

      default it.unimi.dsi.fastutil.objects.Object2IntMap<CorporeaNode> matchCountsByNode()
      Returns:
      A map of corporea nodes that contributed to this result, and how many items each contributed. Should not be modified.