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
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<QuantifiedIngredient>
protected final net.minecraft.world.item.ItemStack
-
Constructor Summary
ConstructorDescriptionInfuserRecipe
(List<QuantifiedIngredient> in, net.minecraft.world.item.ItemStack out) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
assemble
(net.minecraft.world.Container p_44001_, net.minecraft.core.RegistryAccess p_267165_) boolean
canCraftInDimensions
(int width, int height) net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
net.minecraft.world.item.ItemStack
getResultItem
(net.minecraft.core.RegistryAccess p_267052_) net.minecraft.world.item.crafting.RecipeSerializer<InfuserRecipe>
net.minecraft.world.item.ItemStack
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.net.minecraft.world.item.crafting.RecipeType<InfuserRecipe>
getType()
boolean
matches
(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, wait
Methods 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:
matches
in 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:
assemble
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensions
in 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:
getResultItem
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getSerializer
- Specified by:
getSerializer
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
getType
- Specified by:
getType
in 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:
getIngredients
in 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:
getToastSymbol
in interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
- Returns:
- The ItemStack of a block.
-