Enum Class PotatoRefinedCriterion.Type
java.lang.Object
java.lang.Enum<PotatoRefinedCriterion.Type>
net.minecraft.advancement.criterion.PotatoRefinedCriterion.Type
- All Implemented Interfaces:
Serializable,Comparable<PotatoRefinedCriterion.Type>,Constable,StringIdentifiable
- Enclosing class:
PotatoRefinedCriterion
static enum PotatoRefinedCriterion.Type
extends Enum<PotatoRefinedCriterion.Type>
implements StringIdentifiable
- Mappings:
Namespace Name official dd$eintermediary net/minecraft/class_9545$class_9550named net/minecraft/advancement/criterion/PotatoRefinedCriterion$Type
-
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 TypeFieldDescriptionprivate final Supplier<com.mojang.serialization.Codec<? extends PotatoRefinedCriterion.ResultPredicate>> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateType(String name, Supplier<com.mojang.serialization.Codec<? extends PotatoRefinedCriterion.ResultPredicate>> codecSupplier) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.private com.mojang.serialization.Codec<? extends PotatoRefinedCriterion.ResultPredicate> getCodec()static PotatoRefinedCriterion.TypeReturns the enum constant of this class with the specified name.static PotatoRefinedCriterion.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
- Mappings:
Namespace Name Mixin selector official aLdd$e;a:Ldd$e;intermediary field_50742Lnet/minecraft/class_9545$class_9550;field_50742:Lnet/minecraft/class_9545$class_9550;named STANDARDLnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;STANDARD:Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;
-
LUBRICATION
- Mappings:
Namespace Name Mixin selector official bLdd$e;b:Ldd$e;intermediary field_50743Lnet/minecraft/class_9545$class_9550;field_50743:Lnet/minecraft/class_9545$class_9550;named LUBRICATIONLnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;LUBRICATION:Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official cLdd$e;c:Ljava/lang/String;intermediary field_50744Lnet/minecraft/class_9545$class_9550;field_50744:Ljava/lang/String;named nameLnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;name:Ljava/lang/String;
-
codecSupplier
private final Supplier<com.mojang.serialization.Codec<? extends PotatoRefinedCriterion.ResultPredicate>> codecSupplier- Mappings:
Namespace Name Mixin selector official dLdd$e;d:Ljava/util/function/Supplier;intermediary field_50745Lnet/minecraft/class_9545$class_9550;field_50745:Ljava/util/function/Supplier;named codecSupplierLnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;codecSupplier:Ljava/util/function/Supplier;
-
-
Constructor Details
-
Type
private Type(String name, Supplier<com.mojang.serialization.Codec<? extends PotatoRefinedCriterion.ResultPredicate>> codecSupplier) - Mappings:
Namespace Name Mixin selector official <init>Ldd$e;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_9545$class_9550;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)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
-
getCodec
- Mappings:
Namespace Name Mixin selector official aLdd$e;a()Lcom/mojang/serialization/Codec;intermediary method_59105Lnet/minecraft/class_9545$class_9550;method_59105()Lcom/mojang/serialization/Codec;named getCodecLnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;getCodec()Lcom/mojang/serialization/Codec;
-
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 official cLazg;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-