Package org.cloudburstmc.server.crafting
Interface CraftingRecipe
- All Superinterfaces:
org.cloudburstmc.api.crafting.Recipe
- All Known Implementing Classes:
FurnaceRecipe,MultiRecipe,ShapedRecipe,ShapelessRecipe
public interface CraftingRecipe
extends org.cloudburstmc.api.crafting.Recipe
- Author:
- CreeperFace
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends org.cloudburstmc.api.item.ItemStack>List<? extends org.cloudburstmc.api.item.ItemStack>intbooleanmatchItems(org.cloudburstmc.api.item.ItemStack[][] input, org.cloudburstmc.api.item.ItemStack[][] output)Returns whether the specified list of crafting grid inputs and outputs matches this recipe.booleanMethods inherited from interface org.cloudburstmc.api.crafting.Recipe
getBlock, getId, getResult, getType
-
Method Details
-
requiresCraftingTable
boolean requiresCraftingTable() -
getExtraResults
List<? extends org.cloudburstmc.api.item.ItemStack> getExtraResults() -
getAllResults
List<? extends org.cloudburstmc.api.item.ItemStack> getAllResults() -
getPriority
int getPriority() -
matchItems
boolean matchItems(org.cloudburstmc.api.item.ItemStack[][] input, org.cloudburstmc.api.item.ItemStack[][] output)Returns whether the specified list of crafting grid inputs and outputs matches this recipe. Outputs DO NOT include the primary result item.- Parameters:
input- 2D array of items taken from the crafting gridoutput- 2D array of items put back into the crafting grid (secondary results)- Returns:
- bool
-