Package dev.piglin.piglinworldapi.recipe
Class SimpleRecipe
java.lang.Object
dev.piglin.piglinworldapi.recipe.CustomRecipe
dev.piglin.piglinworldapi.recipe.SimpleRecipe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecipe ingredients and data -
Field Summary
Fields inherited from class dev.piglin.piglinworldapi.recipe.CustomRecipe
recipes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.bukkit.inventory.ItemStack>getResult2x2(@NotNull org.bukkit.inventory.ItemStack[] ingredients)Optional<org.bukkit.inventory.ItemStack>getResult3x3(@NotNull org.bukkit.inventory.ItemStack[] ingredients)
-
Constructor Details
-
SimpleRecipe
- Parameters:
data- The recipe ingredients and data
-
-
Method Details
-
getResult3x3
public Optional<org.bukkit.inventory.ItemStack> getResult3x3(@NotNull @NotNull org.bukkit.inventory.ItemStack[] ingredients)- Specified by:
getResult3x3in classCustomRecipe- Parameters:
ingredients- ItemStack array of size 9- Returns:
- The result of this craft if any
-
getResult2x2
public Optional<org.bukkit.inventory.ItemStack> getResult2x2(@NotNull @NotNull org.bukkit.inventory.ItemStack[] ingredients)- Specified by:
getResult2x2in classCustomRecipe- Parameters:
ingredients- ItemStack array of size 4- Returns:
- The result of this craft if any
-