Package net.minecraft.item.crafting
Class SingleItemRecipe
- java.lang.Object
-
- net.minecraft.item.crafting.SingleItemRecipe
-
- All Implemented Interfaces:
IRecipe<IInventory>
- Direct Known Subclasses:
StonecuttingRecipe
public abstract class SingleItemRecipe extends java.lang.Object implements IRecipe<IInventory>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSingleItemRecipe.Serializer<T extends SingleItemRecipe>
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringgroupprotected ResourceLocationidprotected Ingredientingredientprotected ItemStackresultprivate IRecipeSerializer<?>serializerprivate IRecipeType<?>type
-
Constructor Summary
Constructors Constructor Description SingleItemRecipe(IRecipeType<?> p_i50023_1_, IRecipeSerializer<?> p_i50023_2_, ResourceLocation p_i50023_3_, java.lang.String p_i50023_4_, Ingredient p_i50023_5_, ItemStack p_i50023_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStackassemble(IInventory p_77572_1_)booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_)java.lang.StringgetGroup()ResourceLocationgetId()NonNullList<Ingredient>getIngredients()ItemStackgetResultItem()IRecipeSerializer<?>getSerializer()IRecipeType<?>getType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.item.crafting.IRecipe
getRemainingItems, getToastSymbol, isSpecial, matches
-
-
-
-
Field Detail
-
ingredient
protected final Ingredient ingredient
-
result
protected final ItemStack result
-
type
private final IRecipeType<?> type
-
serializer
private final IRecipeSerializer<?> serializer
-
id
protected final ResourceLocation id
-
group
protected final java.lang.String group
-
-
Constructor Detail
-
SingleItemRecipe
public SingleItemRecipe(IRecipeType<?> p_i50023_1_, IRecipeSerializer<?> p_i50023_2_, ResourceLocation p_i50023_3_, java.lang.String p_i50023_4_, Ingredient p_i50023_5_, ItemStack p_i50023_6_)
-
-
Method Detail
-
getType
public IRecipeType<?> getType()
- Specified by:
getTypein interfaceIRecipe<IInventory>
-
getSerializer
public IRecipeSerializer<?> getSerializer()
- Specified by:
getSerializerin interfaceIRecipe<IInventory>
-
getId
public ResourceLocation getId()
- Specified by:
getIdin interfaceIRecipe<IInventory>
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroupin interfaceIRecipe<IInventory>
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItemin interfaceIRecipe<IInventory>
-
getIngredients
public NonNullList<Ingredient> getIngredients()
- Specified by:
getIngredientsin interfaceIRecipe<IInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_)- Specified by:
canCraftInDimensionsin interfaceIRecipe<IInventory>
-
assemble
public ItemStack assemble(IInventory p_77572_1_)
- Specified by:
assemblein interfaceIRecipe<IInventory>
-
-