Enum Class AdvancementCommand.Action

java.lang.Object
java.lang.Enum<AdvancementCommand.Action>
net.minecraft.command.impl.AdvancementCommand.Action
All Implemented Interfaces:
Serializable, Comparable<AdvancementCommand.Action>, Constable
Enclosing class:
AdvancementCommand

static enum AdvancementCommand.Action extends Enum<AdvancementCommand.Action>
  • Enum Constant Details

  • Field Details

    • key

      private final String key
  • Constructor Details

    • Action

      private Action(String p_i48092_3_)
  • Method Details

    • values

      public static AdvancementCommand.Action[] 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 AdvancementCommand.Action 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
    • perform

      public int perform(ServerPlayerEntity p_198180_1_, Iterable<Advancement> p_198180_2_)
    • perform

      protected abstract boolean perform(ServerPlayerEntity p_198179_1_, Advancement p_198179_2_)
    • performCriterion

      protected abstract boolean performCriterion(ServerPlayerEntity p_198182_1_, Advancement p_198182_2_, String p_198182_3_)
    • getKey

      protected String getKey()