public interface Container extends Interactable<Human>
Modifier and Type | Method and Description |
---|---|
void |
close(Human viewer)
Stops showing this Inventory to the given viewer.
|
Set<Human> |
getViewers()
Gets the current viewers looking at this Inventory.
|
boolean |
hasViewers()
Checks for whether this Inventory currently has viewers.
|
void |
open(Human viewer)
Shows this Inventory to the given viewer.
|
canInteractWith
capacity, clear, contains, contains, first, getMaxStackSize, getProperties, getProperties, getProperty, getProperty, isEmpty, next, offer, parent, peek, peek, poll, poll, query, query, query, query, query, query, query, set, setMaxStackSize, size, slots, totalItems
forEach, iterator, spliterator
Set<Human> getViewers()
boolean hasViewers()
void open(Human viewer)
viewer
- The viewer to show this inventory tovoid close(Human viewer)
viewer
- The viewer to stop showing this inventory to