Class LootSpec.Builder
java.lang.Object
privbot.mechanics.LootSpec.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()ids(int... values) Item ids to take.maxPicks(int picks) Most items to pick up per visit (default unlimited).Item names to take (exact, case-insensitive).range(int tiles) Tiles around the player to look (default 8).valueAtLeast(long threshold, ToLongFunction<String> priceOf) Also take any stack worth at leastthreshold:quantity * priceOf(name).
-
Method Details
-
names
Item names to take (exact, case-insensitive). -
ids
Item ids to take. -
range
Tiles around the player to look (default 8). -
maxPicks
Most items to pick up per visit (default unlimited). -
valueAtLeast
Also take any stack worth at leastthreshold:quantity * priceOf(name). -
build
- Returns:
- the spec
-