Class RecipeContainer
java.lang.Object
me.wolfyscript.customcrafting.configs.recipebook.RecipeContainer
- All Implemented Interfaces:
Comparable<RecipeContainer>
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeContainer(String group)
RecipeContainer(ICustomRecipe<?,?> recipe)
RecipeContainer(me.wolfyscript.utilities.util.NamespacedKey recipe)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canView(org.bukkit.entity.Player player)
Checks if a player can view at least one recipe of this container.int
compareTo(@NotNull RecipeContainer container)
boolean
org.bukkit.inventory.ItemStack
List<org.bukkit.inventory.ItemStack>
getDisplayItems(org.bukkit.entity.Player player)
@Nullable String
getGroup()
@Nullable me.wolfyscript.utilities.util.NamespacedKey
List<ICustomRecipe<?,?>>
getRecipes(org.bukkit.entity.Player player)
getValue()
int
hashCode()
boolean
boolean
isValid(EliteWorkbench cache)
toString()
-
Constructor Details
-
RecipeContainer
-
RecipeContainer
public RecipeContainer(me.wolfyscript.utilities.util.NamespacedKey recipe) -
RecipeContainer
-
-
Method Details
-
getRecipes
- Parameters:
player
- The player to get the recipes for.- Returns:
- The recipes of this container the player has access to.
-
canView
public boolean canView(org.bukkit.entity.Player player)Checks if a player can view at least one recipe of this container.- Parameters:
player
- The player to check.- Returns:
- True if the player can view the container.
-
getGroup
-
getRecipe
@Nullable public @Nullable me.wolfyscript.utilities.util.NamespacedKey getRecipe() -
isValid
-
isValid
-
getValue
-
getDisplayItem
public org.bukkit.inventory.ItemStack getDisplayItem() -
getDisplayItems
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<RecipeContainer>
-
toString
-