public interface LinkedChest extends RegularChest, Chest
Modifier and Type | Method and Description |
---|---|
java.util.List<LinkedChest> |
getAllLinkedChests()
Get all the linked chests of the source chest of this chest, excluding the source chest.
|
LinkedChest |
getLinkedChest()
Get the source chest of this chest.
|
boolean |
isLinkedIntoChest()
Checks if this chest is linked into another chest, and it's not the source chest.
|
void |
linkIntoChest(LinkedChest linkedChest)
Link this chest into another chest.
|
addItems, addRawItems, canPlaceItemThroughFace, canTakeItemThroughFace, closePage, getChestType, getContents, getData, getItem, getLocation, getPage, getPageIndex, getPages, getPagesAmount, getPlacer, getSlotsForFace, onBreak, onClose, onHopperItemTake, onHopperMove, onHopperMove, onInteract, onOpen, onPlace, openPage, remove, removeItem, setItem, setPage, setPage
void linkIntoChest(LinkedChest linkedChest)
linkedChest
- The target chest.
If null, you'll unlink this chest with all the linked chests.LinkedChest getLinkedChest()
boolean isLinkedIntoChest()
java.util.List<LinkedChest> getAllLinkedChests()