Package dev.twilite.game.stream
Class TileItemView
- All Implemented Interfaces:
ItemViewFilters<TileItem,,TileItemView> Iterable<TileItem>
public class TileItemView
extends UnitView<TileItem,TileItemView>
implements ItemViewFilters<TileItem,TileItemView>
Lazy view over tile items.
-
Constructor Summary
ConstructorsConstructorDescriptionTileItemView(Supplier<Stream<TileItem>> source) Creates a tile-item view backed by a stream supplier. -
Method Summary
Modifier and TypeMethodDescriptionownershipType(int... ownershipTypes) Filters tile items by ownership type.Methods inherited from class dev.twilite.game.stream.UnitView
filter, nearestTo, nearestTo, not, on, or, reachable, reachableWithin, within, within, within, within, withinMethods 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
filter, id, marketable, nameContains, named, named, noted, placeholder, stackable, stackSize, stackSize, tradeableMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TileItemView
Creates a tile-item view backed by a stream supplier.
-
-
Method Details
-
ownershipType
Filters tile items by ownership type.
-