Package net.minecraft.village
Enum VillageGossipType
- All Implemented Interfaces:
Serializable
,Comparable<VillageGossipType>
,java.lang.constant.Constable
public enum VillageGossipType extends Enum<VillageGossipType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description MAJOR_NEGATIVE
MAJOR_POSITIVE
MINOR_NEGATIVE
MINOR_POSITIVE
TRADING
-
Field Summary
Fields Modifier and Type Field Description private static Map<String,VillageGossipType>
BY_KEY
int
decay
String
key
int
maxValue
int
multiplier
int
shareDecrement
-
Constructor Summary
Constructors Modifier Constructor Description private
VillageGossipType(String key, int multiplier, int maxReputation, int decay, int shareDecrement)
-
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
MAJOR_NEGATIVE
-
MINOR_NEGATIVE
-
MINOR_POSITIVE
-
MAJOR_POSITIVE
-
TRADING
-
-
Field Details
-
BY_KEY
-
key
-
multiplier
public final int multiplier -
maxValue
public final int maxValue -
decay
public final int decay
-
-
Constructor Details
-
VillageGossipType
private VillageGossipType(String key, int multiplier, int maxReputation, int decay, int shareDecrement)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
byKey
-