public enum EWare extends Enum<EWare> implements IWare
| Enum Constant and Description |
|---|
BEER
Beer in barrels
|
BRICK
Brick in burden
|
CLOTH
Cloth in barrels
|
FISH
Fish in burden
|
FISH_OIL
Fish oil in barrels
|
FUR
Fur in barrels
|
GRAIN
Grain in burden
|
HEMP
Hemp in burden
|
HONEY
Honey in barrels
|
IRON
Iron in barrels
|
IRONORE
Iron ore in burden
|
LEATHER
Leather in barrels
|
MEAT
Meat in burden
|
PITCH
Pitch in barrels
|
POTTERY
Pottery in barrels
|
SALT
Salt in barrels
|
SPICE
Spices in barrels
|
WINE
Wine in barrels
|
WOOD
Wood in burden
|
WOOL
Wool in burden
|
| Modifier and Type | Field and Description |
|---|---|
private int |
marketSaturation |
private int |
maxBuyPriceModerate |
private int |
maxBuyPriceOffensive |
private int |
maxBuyPriceRabiat |
private int |
maxValueBuy |
private int |
maxValueSell |
private int |
minValueBuy |
private int |
minValueSell |
private EWareSize |
size |
private String |
wareID |
| Modifier and Type | Method and Description |
|---|---|
short |
getSizeAsBarrels()
Retrieve the size of the ware converted into the smallest size unit (barrels)
|
boolean |
isBarrelSizedWare()
Check if the ware size is barrel or not.
|
static EWare |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EWare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetMaxBuyPriceModerate, getMaxBuyPriceOffensive, getMaxBuyPriceRabiatgetMarketSaturation, getMaxValueBuy, getMaxValueSell, getMinValueBuy, getMinValueSell, namepublic static final EWare BEER
public static final EWare IRONORE
public static final EWare IRON
public static final EWare FUR
public static final EWare FISH
public static final EWare MEAT
public static final EWare GRAIN
public static final EWare SPICE
public static final EWare HEMP
public static final EWare WOOD
public static final EWare HONEY
public static final EWare POTTERY
public static final EWare LEATHER
public static final EWare PITCH
public static final EWare SALT
public static final EWare FISH_OIL
public static final EWare CLOTH
public static final EWare WINE
public static final EWare WOOL
public static final EWare BRICK
private final EWareSize size
private final int maxValueBuy
private final int minValueBuy
private final int maxValueSell
private final int minValueSell
private final int marketSaturation
private final String wareID
private final int maxBuyPriceModerate
private final int maxBuyPriceOffensive
private final int maxBuyPriceRabiat
public static EWare[] values()
for (EWare c : EWare.values()) System.out.println(c);
public static EWare valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final boolean isBarrelSizedWare()
IWareisBarrelSizedWare in interface IWarepublic final short getSizeAsBarrels()
IWaregetSizeAsBarrels in interface IWareCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.