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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull List<org.bukkit.NamespacedKey> Returns list of all registered Minecraft recipes.static voidunlockAllRecipes(@NotNull org.bukkit.entity.Player player) Unlocks all Minecraft recipes for player.Returns the enum constant of this class with the specified name.static WorldFixerSettings.RecipesUnlocker[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRAFTING
When player opens crafting table menu. -
JOIN
When player joins the server. -
NONE
Don't unlock recipes.
-
-
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
-
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
Returns list of all registered Minecraft recipes.
-