public enum VillageGossipType extends Enum<VillageGossipType>
Enum Constant and Description |
---|
MAJOR_NEGATIVE |
MAJOR_POSITIVE |
MINOR_NEGATIVE |
MINOR_POSITIVE |
TRADING |
Modifier and Type | Field and Description |
---|---|
private static Map<String,VillageGossipType> |
BY_KEY |
int |
decay |
String |
key |
int |
maxValue |
int |
multiplier |
int |
shareDecrement |
Modifier and Type | Method and Description |
---|---|
static VillageGossipType |
byKey(String key) |
static VillageGossipType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VillageGossipType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VillageGossipType MAJOR_NEGATIVE
public static final VillageGossipType MINOR_NEGATIVE
public static final VillageGossipType MINOR_POSITIVE
public static final VillageGossipType MAJOR_POSITIVE
public static final VillageGossipType TRADING
private static final Map<String,VillageGossipType> BY_KEY
public final String key
public final int multiplier
public final int maxValue
public final int decay
public final int shareDecrement
public static VillageGossipType[] values()
for (VillageGossipType c : VillageGossipType.values()) System.out.println(c);
public static VillageGossipType 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 null@Nullable public static VillageGossipType byKey(String key)