Enum Class AdvancementCommands.Action

java.lang.Object
java.lang.Enum<AdvancementCommands.Action>
net.minecraft.server.commands.AdvancementCommands.Action
All Implemented Interfaces:
Serializable, Comparable<AdvancementCommands.Action>, Constable
Enclosing class:
AdvancementCommands

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

  • Field Details

    • key

      private final String key
  • Constructor Details

    • Action

      private Action(String p_136372_)
  • Method Details

    • values

      public static AdvancementCommands.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 AdvancementCommands.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(ServerPlayer p_136380_, Iterable<AdvancementHolder> p_136381_)
    • perform

      protected abstract boolean perform(ServerPlayer p_136384_, AdvancementHolder p_301251_)
    • performCriterion

      protected abstract boolean performCriterion(ServerPlayer p_136382_, AdvancementHolder p_301120_, String p_301262_)
    • getKey

      protected String getKey()