Class DummyCorporeaNode
java.lang.Object
vazkii.botania.common.impl.corporea.AbstractCorporeaNode
vazkii.botania.common.impl.corporea.DummyCorporeaNode
- All Implemented Interfaces:
CorporeaNode
-
Constructor Summary
ConstructorsConstructorDescriptionDummyCorporeaNode(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, CorporeaSpark spark) -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.item.ItemStack> countItems(CorporeaRequest request) Counts items in the node matching the requestList<net.minecraft.world.item.ItemStack> extractItems(CorporeaRequest request) Extracts items matching request from the node.
CorporeaRequest.getStillNeeded()is updated to reflect how many items are yet to be extracted.
CorporeaRequest.getFound()andCorporeaRequest.getExtracted()are updated to reflect how many items were found and extracted.Methods inherited from class vazkii.botania.common.impl.corporea.AbstractCorporeaNode
breakDownBigStack, getPos, getSpark, getWorld
-
Constructor Details
-
DummyCorporeaNode
public DummyCorporeaNode(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, CorporeaSpark spark)
-
-
Method Details
-
countItems
Description copied from interface:CorporeaNodeCounts 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
Description copied from interface:CorporeaNodeExtracts items matching request from the node.
CorporeaRequest.getStillNeeded()is updated to reflect how many items are yet to be extracted.
CorporeaRequest.getFound()andCorporeaRequest.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.
-