Interface IMultiblockInventoryProbe


@Internal public interface IMultiblockInventoryProbe
Used for testing the new multiblock engine without coupling tests to either the old BigReactors implementation or this new Forestry-specific implementation. Exposes the inventory contents of a multiblock to allow checking for data loss/duplication.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.world.item.ItemStack>
    snapshotContainer(net.minecraft.world.Container container)
    Deep-copies inventory contents into a list.
    List<net.minecraft.world.item.ItemStack>
     
  • Method Details

    • snapshotSharedInventory

      List<net.minecraft.world.item.ItemStack> snapshotSharedInventory()
      Returns:
      A deep copy of this multiblock's current inventory contents
    • snapshotContainer

      static List<net.minecraft.world.item.ItemStack> snapshotContainer(net.minecraft.world.Container container)
      Deep-copies inventory contents into a list.