Class DummyCorporeaNode

java.lang.Object
vazkii.botania.common.impl.corporea.AbstractCorporeaNode
vazkii.botania.common.impl.corporea.DummyCorporeaNode
All Implemented Interfaces:
CorporeaNode

public class DummyCorporeaNode extends AbstractCorporeaNode
  • Constructor Details

    • DummyCorporeaNode

      public DummyCorporeaNode(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, CorporeaSpark spark)
  • Method Details

    • countItems

      public List<net.minecraft.world.item.ItemStack> countItems(CorporeaRequest request)
      Description copied from interface: CorporeaNode
      Counts items in the node matching the request
      Parameters:
      request - specifies what should be found
      Returns:
      List of ItemStack. Individual stacks may be over-sized (exceed the item's maxStackSize) for purposes of counting huge amounts. The list should not be modified.
    • extractItems

      public List<net.minecraft.world.item.ItemStack> extractItems(CorporeaRequest request)
      Description copied from interface: CorporeaNode
      Extracts items matching request from the node.
      CorporeaRequest.getStillNeeded() is updated to reflect how many items are yet to be extracted.
      CorporeaRequest.getFound() and CorporeaRequest.getExtracted() are updated to reflect how many items were found and extracted.
      Returns:
      List of ItemStacks to be delivered to the destination. The list should not be modified.