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
FieldsModifier and TypeFieldDescriptionstatic final LexiconElvenTradeRecipestatic final net.minecraft.world.item.crafting.RecipeSerializer<LexiconElvenTradeRecipe> 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 -
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.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 recipenet.minecraft.world.item.crafting.RecipeSerializer<LexiconElvenTradeRecipe> 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
-
Field Details
-
INSTANCE
-
SERIALIZER
public static final net.minecraft.world.item.crafting.RecipeSerializer<LexiconElvenTradeRecipe> SERIALIZER
-
-
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
public 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
public 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
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-