Class RecipeContainer

java.lang.Object
me.wolfyscript.customcrafting.configs.recipebook.RecipeContainer
All Implemented Interfaces:
Comparable<RecipeContainer>

public class RecipeContainer extends Object implements Comparable<RecipeContainer>
  • Constructor Details

    • RecipeContainer

      public RecipeContainer(String group)
    • RecipeContainer

      public RecipeContainer(me.wolfyscript.utilities.util.NamespacedKey recipe)
    • RecipeContainer

      public RecipeContainer(ICustomRecipe<?,​?> recipe)
  • Method Details

    • getRecipes

      public List<ICustomRecipe<?,​?>> getRecipes(org.bukkit.entity.Player player)
      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

      @Nullable public @Nullable String getGroup()
    • getRecipe

      @Nullable public @Nullable me.wolfyscript.utilities.util.NamespacedKey getRecipe()
    • isValid

      public boolean isValid(Set<org.bukkit.Material> materials)
    • isValid

      public boolean isValid(EliteWorkbench cache)
    • getValue

      public String getValue()
    • getDisplayItem

      public org.bukkit.inventory.ItemStack getDisplayItem()
    • getDisplayItems

      public List<org.bukkit.inventory.ItemStack> getDisplayItems(org.bukkit.entity.Player player)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(@NotNull @NotNull RecipeContainer container)
      Specified by:
      compareTo in interface Comparable<RecipeContainer>
    • toString

      public String toString()
      Overrides:
      toString in class Object