Class InventoryRange

java.lang.Object
codechicken.lib.inventory.InventoryRange

public class InventoryRange extends Object
Inventory wrapper for unified ISided/IInventory access
  • Field Details

    • inv

      public net.minecraft.world.Container inv
    • face

      public net.minecraft.core.Direction face
    • sidedInv

      public net.minecraft.world.WorldlyContainer sidedInv
    • slots

      public int[] slots
  • Constructor Details

    • InventoryRange

      @Deprecated public InventoryRange(net.minecraft.world.Container inv, int side)
      Deprecated.
    • InventoryRange

      public InventoryRange(net.minecraft.world.Container inv, net.minecraft.core.Direction side)
    • InventoryRange

      public InventoryRange(net.minecraft.world.Container inv)
    • InventoryRange

      public InventoryRange(net.minecraft.world.Container inv, int fslot, int lslot)
    • InventoryRange

      public InventoryRange(net.minecraft.world.Container inv, InventoryRange access)
  • Method Details

    • canInsertItem

      public boolean canInsertItem(int slot, @Nonnull net.minecraft.world.item.ItemStack item)
    • canExtractItem

      public boolean canExtractItem(int slot, @Nonnull net.minecraft.world.item.ItemStack item)
    • lastSlot

      public int lastSlot()