@ThreadSafe public class TridentInventories extends com.google.common.collect.ForwardingCollection<Inventory> implements Inventories
| Constructor and Description |
|---|
TridentInventories() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Inventory> |
delegate() |
Inventory |
fromId(int id)
Gets a inventory by its ID
|
void |
register(Inventory window)
Registers the inventory with the manager
|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic TridentInventories()
public Inventory fromId(int id)
InventoriesfromId in interface Inventoriesid - the ID of a inventorynull if it doesn't existpublic void register(Inventory window)
Inventoriesregister in interface Inventorieswindow - the inventory to be registeredprotected Collection<Inventory> delegate()
delegate in class com.google.common.collect.ForwardingCollection<Inventory>Copyright © 2016. All rights reserved.