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 TypeMethodDescriptionbooleancanView(org.bukkit.entity.Player player)Checks if a player can view at least one recipe of this container.intcompareTo(@NotNull RecipeContainer container)booleanorg.bukkit.inventory.ItemStackList<org.bukkit.inventory.ItemStack>getDisplayItems(org.bukkit.entity.Player player)@Nullable StringgetGroup()@Nullable me.wolfyscript.utilities.util.NamespacedKeyList<ICustomRecipe<?,?>>getRecipes(org.bukkit.entity.Player player)getValue()inthashCode()booleanbooleanisValid(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:
compareToin interfaceComparable<RecipeContainer>
-
toString
-