Package net.minecraft.village
Enum VillageGossipType
- All Implemented Interfaces:
Serializable,Comparable<VillageGossipType>,java.lang.constant.Constable
public enum VillageGossipType extends Enum<VillageGossipType>
- Mappings:
Namespace Name official azcintermediary net/minecraft/class_4139named net/minecraft/village/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_NEGATIVEMAJOR_POSITIVEMINOR_NEGATIVEMINOR_POSITIVETRADING -
Field Summary
Fields Modifier and Type Field Description private static Map<String,VillageGossipType>BY_KEYintdecayStringkeyintmaxValueintmultiplierintshareDecrement -
Constructor Summary
Constructors Modifier Constructor Description privateVillageGossipType(String key, int multiplier, int maxReputation, int decay, int shareDecrement) -
Method Summary
Modifier and Type Method Description static VillageGossipTypebyKey(String key)static VillageGossipTypevalueOf(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
- Mappings:
Namespace Name Mixin selector official aLazc;a:Lazc;intermediary field_18424Lnet/minecraft/class_4139;field_18424:Lnet/minecraft/class_4139;named MAJOR_NEGATIVELnet/minecraft/village/VillageGossipType;MAJOR_NEGATIVE:Lnet/minecraft/village/VillageGossipType;
-
MINOR_NEGATIVE
- Mappings:
Namespace Name Mixin selector official bLazc;b:Lazc;intermediary field_18425Lnet/minecraft/class_4139;field_18425:Lnet/minecraft/class_4139;named MINOR_NEGATIVELnet/minecraft/village/VillageGossipType;MINOR_NEGATIVE:Lnet/minecraft/village/VillageGossipType;
-
MINOR_POSITIVE
- Mappings:
Namespace Name Mixin selector official cLazc;c:Lazc;intermediary field_18426Lnet/minecraft/class_4139;field_18426:Lnet/minecraft/class_4139;named MINOR_POSITIVELnet/minecraft/village/VillageGossipType;MINOR_POSITIVE:Lnet/minecraft/village/VillageGossipType;
-
MAJOR_POSITIVE
- Mappings:
Namespace Name Mixin selector official dLazc;d:Lazc;intermediary field_18427Lnet/minecraft/class_4139;field_18427:Lnet/minecraft/class_4139;named MAJOR_POSITIVELnet/minecraft/village/VillageGossipType;MAJOR_POSITIVE:Lnet/minecraft/village/VillageGossipType;
-
TRADING
- Mappings:
Namespace Name Mixin selector official eLazc;e:Lazc;intermediary field_18428Lnet/minecraft/class_4139;field_18428:Lnet/minecraft/class_4139;named TRADINGLnet/minecraft/village/VillageGossipType;TRADING:Lnet/minecraft/village/VillageGossipType;
-
-
Field Details
-
BY_KEY
- Mappings:
Namespace Name Mixin selector official kLazc;k:Ljava/util/Map;intermediary field_18435Lnet/minecraft/class_4139;field_18435:Ljava/util/Map;named BY_KEYLnet/minecraft/village/VillageGossipType;BY_KEY:Ljava/util/Map;
-
key
- Mappings:
Namespace Name Mixin selector official fLazc;f:Ljava/lang/String;intermediary field_18430Lnet/minecraft/class_4139;field_18430:Ljava/lang/String;named keyLnet/minecraft/village/VillageGossipType;key:Ljava/lang/String;
-
multiplier
public final int multiplier- Mappings:
Namespace Name Mixin selector official gLazc;g:Iintermediary field_18431Lnet/minecraft/class_4139;field_18431:Inamed multiplierLnet/minecraft/village/VillageGossipType;multiplier:I
-
maxValue
public final int maxValue- Mappings:
Namespace Name Mixin selector official hLazc;h:Iintermediary field_18432Lnet/minecraft/class_4139;field_18432:Inamed maxValueLnet/minecraft/village/VillageGossipType;maxValue:I
-
decay
public final int decay- Mappings:
Namespace Name Mixin selector official iLazc;i:Iintermediary field_19354Lnet/minecraft/class_4139;field_19354:Inamed decayLnet/minecraft/village/VillageGossipType;decay:I
-
-
Constructor Details
-
VillageGossipType
private VillageGossipType(String key, int multiplier, int maxReputation, int decay, int shareDecrement)- Mappings:
Namespace Name Mixin selector official <init>Lazc;<init>(Ljava/lang/String;ILjava/lang/String;IIII)Vintermediary <init>Lnet/minecraft/class_4139;<init>(Ljava/lang/String;ILjava/lang/String;IIII)Vnamed <init>Lnet/minecraft/village/VillageGossipType;<init>(Ljava/lang/String;ILjava/lang/String;IIII)V
-
-
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
- Mappings:
Namespace Name Mixin selector official aLazc;a(Ljava/lang/String;)Lazc;intermediary method_19090Lnet/minecraft/class_4139;method_19090(Ljava/lang/String;)Lnet/minecraft/class_4139;named byKeyLnet/minecraft/village/VillageGossipType;byKey(Ljava/lang/String;)Lnet/minecraft/village/VillageGossipType;
-