Class AbstractCrafting
java.lang.Object
com.minecolonies.api.colony.requestsystem.requestable.crafting.AbstractCrafting
- All Implemented Interfaces:
IRequestable
- Direct Known Subclasses:
PrivateCrafting,PublicCrafting
Abstract crafting request.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCrafting(@NotNull net.minecraft.world.item.ItemStack stack, int count, int minCount, IToken<?> recipeToken) Create a Stack deliverable. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.requestsystem.requestable.IRequestable
getSuperClasses
-
Field Details
-
NBT_STACK
- See Also:
-
NBT_COUNT
- See Also:
-
NBT_MIN_COUNT
- See Also:
-
NBT_TOKEN
- See Also:
-
-
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
The recipe storage id.- Returns:
- the id.
-
equals
-
hashCode
public int hashCode()
-