Package dev.twilite.game.stream
Class ItemView
- All Implemented Interfaces:
ItemViewFilters<Item,,ItemView> Iterable<Item>
Lazy view over inventory items.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.twilite.game.stream.BaseItemView
filter, not, orMethods inherited from class dev.twilite.game.stream.View
count, exists, first, iterator, map, mapToInt, stream, toListMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.twilite.game.stream.ItemViewFilters
id, marketable, nameContains, named, named, noted, placeholder, stackable, stackSize, stackSize, tradeableMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ItemView
Creates an item view backed by a stream supplier.
-
-
Method Details
-
slot
Filters items by inventory slot. -
distinct
Returns a new view containing only the first item for each item id.
-