@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, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
public TridentInventories()
public Inventory fromId(int id)
Inventories
fromId
in interface Inventories
id
- the ID of a inventorynull
if it doesn't existpublic void register(Inventory window)
Inventories
register
in interface Inventories
window
- the inventory to be registeredprotected Collection<Inventory> delegate()
delegate
in class com.google.common.collect.ForwardingCollection<Inventory>
Copyright © 2016. All rights reserved.