Class VanillaCorporeaNode
java.lang.Object
vazkii.botania.common.impl.corporea.AbstractCorporeaNode
vazkii.botania.common.impl.corporea.VanillaCorporeaNode
- All Implemented Interfaces:
CorporeaNode
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVanillaCorporeaNode(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.Container inv, 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.protected List<net.minecraft.world.item.ItemStack> iterateOverSlots(CorporeaRequest request, boolean doit) Methods inherited from class vazkii.botania.common.impl.corporea.AbstractCorporeaNode
breakDownBigStack, getPos, getSpark, getWorld
-
Field Details
-
inv
protected final net.minecraft.world.Container inv
-
-
Constructor Details
-
VanillaCorporeaNode
public VanillaCorporeaNode(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.Container inv, 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.
-
iterateOverSlots
protected List<net.minecraft.world.item.ItemStack> iterateOverSlots(CorporeaRequest request, boolean doit)
-