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 class
SingleItemRecipe.Serializer<T extends SingleItemRecipe>
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
group
protected ResourceLocation
id
protected Ingredient
ingredient
protected ItemStack
result
private IRecipeSerializer<?>
serializer
private 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 ItemStack
assemble(IInventory p_77572_1_)
boolean
canCraftInDimensions(int p_194133_1_, int p_194133_2_)
java.lang.String
getGroup()
ResourceLocation
getId()
NonNullList<Ingredient>
getIngredients()
ItemStack
getResultItem()
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:
getType
in interfaceIRecipe<IInventory>
-
getSerializer
public IRecipeSerializer<?> getSerializer()
- Specified by:
getSerializer
in interfaceIRecipe<IInventory>
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interfaceIRecipe<IInventory>
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroup
in interfaceIRecipe<IInventory>
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItem
in interfaceIRecipe<IInventory>
-
getIngredients
public NonNullList<Ingredient> getIngredients()
- Specified by:
getIngredients
in interfaceIRecipe<IInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_)
- Specified by:
canCraftInDimensions
in interfaceIRecipe<IInventory>
-
assemble
public ItemStack assemble(IInventory p_77572_1_)
- Specified by:
assemble
in interfaceIRecipe<IInventory>
-
-