java.lang.Object
com.minecolonies.api.colony.requestsystem.requestable.crafting.AbstractCrafting
All Implemented Interfaces:
IRequestable
Direct Known Subclasses:
PrivateCrafting, PublicCrafting

public abstract class AbstractCrafting extends Object implements IRequestable
Abstract crafting request.
  • Field Details

  • Constructor Details

    • AbstractCrafting

      public AbstractCrafting(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, int count, int minCount, IToken<?> recipeToken)
      Create a Stack deliverable.
      Parameters:
      stack - the required stack.
      count - the crafting count.
      minCount - the min crafting count.
      recipeToken - the associated recipe token.
  • Method Details

    • getStack

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getStack()
    • getCount

      public int getCount()
      Get the count to fulfill.
      Returns:
      the count.
    • getMinCount

      public int getMinCount()
      Get the min count to fulfill.
      Returns:
      the min count.
    • getRecipeID

      public IToken<?> getRecipeID()
      The recipe storage id.
      Returns:
      the id.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object