Class InfuserRecipe
java.lang.Object
com.pixelmonmod.pixelmon.api.recipe.InfuserRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
public class InfuserRecipe
extends Object
implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<QuantifiedIngredient>protected final net.minecraft.world.item.ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionInfuserRecipe(List<QuantifiedIngredient> in, net.minecraft.world.item.ItemStack out) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.Container p_44001_, net.minecraft.core.RegistryAccess p_267165_) booleancanCraftInDimensions(int width, int height) net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.RegistryAccess p_267052_) net.minecraft.world.item.crafting.RecipeSerializer<InfuserRecipe>net.minecraft.world.item.ItemStackWhen a recipe for the Infuser is discovered, this decides what item is shown in the toast that appears in the top right corner of the screen.net.minecraft.world.item.crafting.RecipeType<InfuserRecipe>getType()booleanmatches(net.minecraft.world.Container inv, net.minecraft.world.level.Level worldIn) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getRemainingItems, isIncomplete, isSpecial, showNotification
-
Field Details
-
input
-
result
protected final net.minecraft.world.item.ItemStack result
-
-
Constructor Details
-
InfuserRecipe
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.Container inv, net.minecraft.world.level.Level worldIn) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.Container p_44001_, net.minecraft.core.RegistryAccess p_267165_) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.RegistryAccess p_267052_) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getSerializer
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getType
- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getQualifiedIngredients
-
getIngredients
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getToastSymbol
public net.minecraft.world.item.ItemStack getToastSymbol()When a recipe for the Infuser is discovered, this decides what item is shown in the toast that appears in the top right corner of the screen.- Specified by:
getToastSymbolin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>- Returns:
- The ItemStack of a block.
-