public abstract class SimpleItemQuery<K extends SimpleItem> extends SimpleQuery<SimpleItemQuery<K>,K>
Modifier and Type | Method and Description |
---|---|
SimpleItemQuery<K> |
filter(int... ids)
Will filter out all items whose id isn't one of the elements inside of the {ids} array
|
SimpleItemQuery<K> |
filter(java.util.regex.Pattern... patterns)
Will filter out all items whose name doesn't' match any of the patterns
|
SimpleItemQuery<K> |
filter(java.lang.String... names)
Will filter out all items whose name isn't one of the elements inside of the {names} array
|
SimpleItemQuery<K> |
filterHasAction(java.util.regex.Pattern... patterns)
Will filter out all items who don't have any actions that match any of the patterns
|
SimpleItemQuery<K> |
filterHasAction(java.lang.String... actions)
Will filter out all items who don't have any actions that are inside of the {actions} array
|
int |
population(boolean stacks)
Will return the amount of items inside of the query by their stack sizes
|
contains, filter, isEmpty, iterator, next, peekNext, populate, population, reverse, shuffle, size, sort, toStream
public int population(boolean stacks)
public SimpleItemQuery<K> filter(int... ids)
ids
- array of ids for our filterpublic SimpleItemQuery<K> filter(java.lang.String... names)
names
- array of names for our filterpublic SimpleItemQuery<K> filter(java.util.regex.Pattern... patterns)
patterns
- regex patterns for our filter to checkpublic SimpleItemQuery<K> filterHasAction(java.lang.String... actions)
actions
- array of actions for our filterpublic SimpleItemQuery<K> filterHasAction(java.util.regex.Pattern... patterns)
patterns
- regex patterns for our filter to check