Package net.minecraft.village
Enum GossipType
- java.lang.Object
-
- java.lang.Enum<GossipType>
-
- net.minecraft.village.GossipType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GossipType>
public enum GossipType extends java.lang.Enum<GossipType>
-
-
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 java.util.Map<java.lang.String,GossipType>
BY_ID
int
decayPerDay
int
decayPerTransfer
java.lang.String
id
int
max
int
weight
-
Constructor Summary
Constructors Modifier Constructor Description private
GossipType(java.lang.String p_i50307_3_, int p_i50307_4_, int p_i50307_5_, int p_i50307_6_, int p_i50307_7_)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GossipType
byId(java.lang.String p_220929_0_)
static GossipType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GossipType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAJOR_NEGATIVE
public static final GossipType MAJOR_NEGATIVE
-
MINOR_NEGATIVE
public static final GossipType MINOR_NEGATIVE
-
MINOR_POSITIVE
public static final GossipType MINOR_POSITIVE
-
MAJOR_POSITIVE
public static final GossipType MAJOR_POSITIVE
-
TRADING
public static final GossipType TRADING
-
-
Field Detail
-
id
public final java.lang.String id
-
weight
public final int weight
-
max
public final int max
-
decayPerDay
public final int decayPerDay
-
decayPerTransfer
public final int decayPerTransfer
-
BY_ID
private static final java.util.Map<java.lang.String,GossipType> BY_ID
-
-
Method Detail
-
values
public static GossipType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GossipType c : GossipType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GossipType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
byId
@Nullable public static GossipType byId(java.lang.String p_220929_0_)
-
-