public class SimpleShop extends SimpleItemQuery<SimpleItem>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleShop.Amount |
ctx
Constructor and Description |
---|
SimpleShop(ClientContext ctx)
Creates a new instance with the specified context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
buy(int id,
int quantity) |
boolean |
buy(int id,
SimpleShop.Amount quantity) |
boolean |
buy(java.lang.String name,
int quantity) |
boolean |
buy(java.lang.String name,
SimpleShop.Amount quantity) |
boolean |
closeShop() |
java.util.List<SimpleItem> |
list() |
java.lang.String |
name() |
boolean |
open(java.lang.String category) |
boolean |
opened() |
boolean |
sell(int id,
int quantity) |
boolean |
sell(int id,
SimpleShop.Amount quantity) |
boolean |
sell(java.lang.String name,
int quantity) |
boolean |
sell(java.lang.String name,
SimpleShop.Amount quantity) |
filter, filter, filter, filterContains, filterHasAction, filterHasAction, population
contains, filter, isEmpty, iterator, next, peekNext, populate, population, reverse, shuffle, size, sort, toStream
public SimpleShop(ClientContext ctx)
ctx
- the contextpublic java.util.List<SimpleItem> list()
public boolean opened()
public java.lang.String name()
public boolean open(java.lang.String category)
public boolean closeShop()
public boolean buy(int id, int quantity)
public boolean buy(int id, SimpleShop.Amount quantity)
public boolean buy(java.lang.String name, int quantity)
public boolean buy(java.lang.String name, SimpleShop.Amount quantity)
public boolean sell(int id, int quantity)
public boolean sell(int id, SimpleShop.Amount quantity)
public boolean sell(java.lang.String name, int quantity)
public boolean sell(java.lang.String name, SimpleShop.Amount quantity)