Enum Class WorldFixerSettings.RecipesUnlocker

java.lang.Object
java.lang.Enum<WorldFixerSettings.RecipesUnlocker>
ua.mcchickenstudio.opencreative.settings.WorldFixerSettings.RecipesUnlocker
All Implemented Interfaces:
Serializable, Comparable<WorldFixerSettings.RecipesUnlocker>, Constable
Enclosing class:
WorldFixerSettings

public static enum WorldFixerSettings.RecipesUnlocker extends Enum<WorldFixerSettings.RecipesUnlocker>

RecipesUnlocker

This enum represents all options to unlock player all crafting recipes at once. Required only, if server has disabled advancements.
  • Enum Constant Details

  • Method Details

    • values

      public static WorldFixerSettings.RecipesUnlocker[] 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 WorldFixerSettings.RecipesUnlocker 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
    • unlockAllRecipes

      public static void unlockAllRecipes(@NotNull @NotNull org.bukkit.entity.Player player)
      Unlocks all Minecraft recipes for player.
      Parameters:
      player - player to unlock recipe.
    • getMinecraftRecipes

      @NotNull public static @NotNull List<org.bukkit.NamespacedKey> getMinecraftRecipes()
      Returns list of all registered Minecraft recipes.