Package net.minecraft.village
Enum Class VillagerGossipType
- All Implemented Interfaces:
Serializable,Comparable<VillagerGossipType>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/village/VillagerGossipTypeintermediary net/minecraft/class_4139official che
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<VillagerGossipType> final intfinal Stringstatic final intfinal intfinal intfinal intstatic final intstatic final intFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVillagerGossipType(String id, int multiplier, int maxReputation, int decay, int shareDecrement) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static VillagerGossipTypeReturns the enum constant of this class with the specified name.static VillagerGossipType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAJOR_NEGATIVE
- Mappings:
Namespace Name Mixin selector named MAJOR_NEGATIVELnet/minecraft/village/VillagerGossipType;MAJOR_NEGATIVE:Lnet/minecraft/village/VillagerGossipType;intermediary field_18424Lnet/minecraft/class_4139;field_18424:Lnet/minecraft/class_4139;official aLche;a:Lche;
-
MINOR_NEGATIVE
- Mappings:
Namespace Name Mixin selector named MINOR_NEGATIVELnet/minecraft/village/VillagerGossipType;MINOR_NEGATIVE:Lnet/minecraft/village/VillagerGossipType;intermediary field_18425Lnet/minecraft/class_4139;field_18425:Lnet/minecraft/class_4139;official bLche;b:Lche;
-
MINOR_POSITIVE
- Mappings:
Namespace Name Mixin selector named MINOR_POSITIVELnet/minecraft/village/VillagerGossipType;MINOR_POSITIVE:Lnet/minecraft/village/VillagerGossipType;intermediary field_18426Lnet/minecraft/class_4139;field_18426:Lnet/minecraft/class_4139;official cLche;c:Lche;
-
MAJOR_POSITIVE
- Mappings:
Namespace Name Mixin selector named MAJOR_POSITIVELnet/minecraft/village/VillagerGossipType;MAJOR_POSITIVE:Lnet/minecraft/village/VillagerGossipType;intermediary field_18427Lnet/minecraft/class_4139;field_18427:Lnet/minecraft/class_4139;official dLche;d:Lche;
-
TRADING
- Mappings:
Namespace Name Mixin selector named TRADINGLnet/minecraft/village/VillagerGossipType;TRADING:Lnet/minecraft/village/VillagerGossipType;intermediary field_18428Lnet/minecraft/class_4139;field_18428:Lnet/minecraft/class_4139;official eLche;e:Lche;
-
-
Field Details
-
MAX_TRADING_REPUTATION
public static final int MAX_TRADING_REPUTATION- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TRADING_REPUTATIONLnet/minecraft/village/VillagerGossipType;MAX_TRADING_REPUTATION:Iintermediary field_30240Lnet/minecraft/class_4139;field_30240:Iofficial fLche;f:I
-
TRADING_GOSSIP_SHARE_DECREMENT
public static final int TRADING_GOSSIP_SHARE_DECREMENT- See Also:
- Mappings:
Namespace Name Mixin selector named TRADING_GOSSIP_SHARE_DECREMENTLnet/minecraft/village/VillagerGossipType;TRADING_GOSSIP_SHARE_DECREMENT:Iintermediary field_30241Lnet/minecraft/class_4139;field_30241:Iofficial gLche;g:I
-
TRADING_GOSSIP_DECAY
public static final int TRADING_GOSSIP_DECAY- See Also:
- Mappings:
Namespace Name Mixin selector named TRADING_GOSSIP_DECAYLnet/minecraft/village/VillagerGossipType;TRADING_GOSSIP_DECAY:Iintermediary field_30242Lnet/minecraft/class_4139;field_30242:Iofficial hLche;h:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/village/VillagerGossipType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_41672Lnet/minecraft/class_4139;field_41672:Lcom/mojang/serialization/Codec;official nLche;n:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/village/VillagerGossipType;id:Ljava/lang/String;intermediary field_18430Lnet/minecraft/class_4139;field_18430:Ljava/lang/String;official iLche;i:Ljava/lang/String;
-
multiplier
public final int multiplier- Mappings:
Namespace Name Mixin selector named multiplierLnet/minecraft/village/VillagerGossipType;multiplier:Iintermediary field_18431Lnet/minecraft/class_4139;field_18431:Iofficial jLche;j:I
-
maxValue
public final int maxValue- Mappings:
Namespace Name Mixin selector named maxValueLnet/minecraft/village/VillagerGossipType;maxValue:Iintermediary field_18432Lnet/minecraft/class_4139;field_18432:Iofficial kLche;k:I
-
decay
public final int decay- Mappings:
Namespace Name Mixin selector named decayLnet/minecraft/village/VillagerGossipType;decay:Iintermediary field_19354Lnet/minecraft/class_4139;field_19354:Iofficial lLche;l:I
-
-
Constructor Details
-
VillagerGossipType
private VillagerGossipType(String id, int multiplier, int maxReputation, int decay, int shareDecrement) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/village/VillagerGossipType;<init>(Ljava/lang/String;ILjava/lang/String;IIII)Vintermediary <init>Lnet/minecraft/class_4139;<init>(Ljava/lang/String;ILjava/lang/String;IIII)Vofficial <init>Lche;<init>(Ljava/lang/String;ILjava/lang/String;IIII)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbax;c()Ljava/lang/String;
-