Package vazkii.botania.common.crafting
Class ElvenTradeRecipe
java.lang.Object
vazkii.botania.common.crafting.ElvenTradeRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>,ElvenTradeRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface vazkii.botania.api.recipe.ElvenTradeRecipe
TYPE_ID, TYPE_ID_LEXICONFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionElvenTradeRecipe(List<net.minecraft.world.item.ItemStack> outputs, List<net.minecraft.world.item.crafting.Ingredient> ingredients) ElvenTradeRecipe(net.minecraft.world.item.ItemStack[] outputs, net.minecraft.world.item.crafting.Ingredient... inputs) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsItem(net.minecraft.world.item.ItemStack stack) If the recipe does not contain the item, it will be destroyed upon entering the portal.@NotNull net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> List<net.minecraft.world.item.ItemStack> List<net.minecraft.world.item.ItemStack> getOutputs(List<net.minecraft.world.item.ItemStack> inputs) Actually evaluate the recipe@NotNull net.minecraft.world.item.crafting.RecipeSerializer<?> @NotNull net.minecraft.world.item.ItemStackAttempts to match the recipeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.botania.api.recipe.ElvenTradeRecipe
assemble, canCraftInDimensions, getResultItem, getType, isReturnRecipe, isSpecial, matchesMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getRemainingItems, isIncomplete, showNotification
-
Constructor Details
-
ElvenTradeRecipe
public ElvenTradeRecipe(net.minecraft.world.item.ItemStack[] outputs, net.minecraft.world.item.crafting.Ingredient... inputs) -
ElvenTradeRecipe
-
-
Method Details
-
match
public Optional<List<net.minecraft.world.item.ItemStack>> match(List<net.minecraft.world.item.ItemStack> stacks) Description copied from interface:ElvenTradeRecipeAttempts to match the recipe- Specified by:
matchin interfaceElvenTradeRecipe- Parameters:
stacks- Entire contents of the portal's buffer- Returns:
Optional.empty()if recipe doesn't match, Optional with a set of items used by recipe otherwise
-
containsItem
public boolean containsItem(net.minecraft.world.item.ItemStack stack) Description copied from interface:ElvenTradeRecipeIf the recipe does not contain the item, it will be destroyed upon entering the portal.- Specified by:
containsItemin interfaceElvenTradeRecipe
-
getSerializer
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getIngredients
@NotNull public @NotNull net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()- Specified by:
getIngredientsin interfaceElvenTradeRecipe- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>- Returns:
- Preview of the inputs
-
getToastSymbol
@NotNull public @NotNull net.minecraft.world.item.ItemStack getToastSymbol()- Specified by:
getToastSymbolin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getOutputs
- Specified by:
getOutputsin interfaceElvenTradeRecipe- Returns:
- Preview of the outputs
-
getOutputs
public List<net.minecraft.world.item.ItemStack> getOutputs(List<net.minecraft.world.item.ItemStack> inputs) Description copied from interface:ElvenTradeRecipeActually evaluate the recipe- Specified by:
getOutputsin interfaceElvenTradeRecipe
-