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$e
intermediary net/minecraft/class_9545$class_9550
named net/minecraft/advancement/criterion/PotatoRefinedCriterion$Type
  • Enum Constant Details

    • STANDARD

      public static final PotatoRefinedCriterion.Type STANDARD
      Mappings:
      Namespace Name Mixin selector
      official a Ldd$e;a:Ldd$e;
      intermediary field_50742 Lnet/minecraft/class_9545$class_9550;field_50742:Lnet/minecraft/class_9545$class_9550;
      named STANDARD Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;STANDARD:Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;
    • LUBRICATION

      public static final PotatoRefinedCriterion.Type LUBRICATION
      Mappings:
      Namespace Name Mixin selector
      official b Ldd$e;b:Ldd$e;
      intermediary field_50743 Lnet/minecraft/class_9545$class_9550;field_50743:Lnet/minecraft/class_9545$class_9550;
      named LUBRICATION Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;LUBRICATION:Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official c Ldd$e;c:Ljava/lang/String;
      intermediary field_50744 Lnet/minecraft/class_9545$class_9550;field_50744:Ljava/lang/String;
      named name Lnet/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 d Ldd$e;d:Ljava/util/function/Supplier;
      intermediary field_50745 Lnet/minecraft/class_9545$class_9550;field_50745:Ljava/util/function/Supplier;
      named codecSupplier Lnet/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;)V
      intermediary <init> Lnet/minecraft/class_9545$class_9550;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)V
      named <init> Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Supplier;)V
  • Method Details

    • values

      public static PotatoRefinedCriterion.Type[] 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

      public static PotatoRefinedCriterion.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCodec

      private com.mojang.serialization.Codec<? extends PotatoRefinedCriterion.ResultPredicate> getCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Ldd$e;a()Lcom/mojang/serialization/Codec;
      intermediary method_59105 Lnet/minecraft/class_9545$class_9550;method_59105()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/advancement/criterion/PotatoRefinedCriterion$Type;getCodec()Lcom/mojang/serialization/Codec;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Lazg;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;