T
- Base type of entity which may interact with this objectpublic interface Interactable<T extends Entity> extends Inventory
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(T entity)
Get whether the specified entity can interact with this object.
|
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
boolean canInteractWith(T entity)
entity
- the Entity wishing to interact with this Inventory