Class TileInventory

All Implemented Interfaces:
IInventory, IFilteredInventory, Iterable<ItemInstance>

public class TileInventory extends BasicFilteredInventory
  • Constructor Details

    • TileInventory

      public TileInventory(TileEntity tile)
      Creates a tile inventory that has a single slot that is an output slot
      Parameters:
      tile - the tile entity itself
    • TileInventory

      public TileInventory(TileEntity tile, Function<ItemInstance,Boolean> canInput)
      Creates a tile inventory that has a single slot that is an input slot. The function determines if the given item can be put into the slot or not
      Parameters:
      tile - the tile entity itself
      canInput - if it can be inputted into the tile entity
    • TileInventory

      public TileInventory(TileEntity tile, int slotAmount, List<Integer> inputOutputSlots)
    • TileInventory

      public TileInventory(TileEntity tile, int slotAmount, List<Integer> inputSlots, List<Integer> outputSlots)
    • TileInventory

      public TileInventory(TileEntity tile, int slotAmount, Function<ItemInstance,List<Integer>> inputSlotFunction, List<Integer> outputSlots)