-
Method Summary
int
net.minecraft.world.item.Item
Returns the item of the cell in the given slot or null.
boolean
boolean
-
Method Details
-
getCellCount
int getCellCount()
- Returns:
- how many slots are available. Chest has 1, Drive has 10.
-
getCellStatus
- 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.