Package vazkii.botania.common.crafting
Class LexiconElvenTradeRecipe
java.lang.Object
vazkii.botania.common.crafting.LexiconElvenTradeRecipe
- 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
Constructors -
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<LexiconElvenTradeRecipe> @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
-
LexiconElvenTradeRecipe
public LexiconElvenTradeRecipe()
-
-
Method Details
-
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
-
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
-
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
-
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
-
getSerializer
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<LexiconElvenTradeRecipe> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-