Interface IChestOrDrive

All Superinterfaces:
IActionHost, IOrientable
All Known Subinterfaces:
IMEChest

public interface IChestOrDrive extends IOrientable, IActionHost
  • Method Details

    • getCellCount

      int getCellCount()
      Returns:
      how many slots are available. Chest has 1, Drive has 10.
    • getCellStatus

      CellState getCellStatus(int slot)
      Parameters:
      slot - slot index
      Returns:
      status of the slot, one of the above indices.
    • isPowered

      boolean isPowered()
      Returns:
      if the device is online you should check this before providing any other information.
    • isCellBlinking

      boolean isCellBlinking(int slot)
      Parameters:
      slot - slot index
      Returns:
      is the cell currently blinking to show activity.
    • getCellItem

      @Nullable net.minecraft.world.item.Item getCellItem(int slot)
      Returns the item of the cell in the given slot or null.