Package net.minecraft.item.crafting
Class SingleItemRecipe
java.lang.Object
net.minecraft.item.crafting.SingleItemRecipe
- All Implemented Interfaces:
IRecipe<IInventory>
- Direct Known Subclasses:
StonecuttingRecipe
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SingleItemRecipe.Serializer<T extends SingleItemRecipe>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final ResourceLocation
protected final Ingredient
protected final ItemStack
private final IRecipeSerializer<?>
private final IRecipeType<?>
-
Constructor Summary
ConstructorDescriptionSingleItemRecipe
(IRecipeType<?> p_i50023_1_, IRecipeSerializer<?> p_i50023_2_, ResourceLocation p_i50023_3_, String p_i50023_4_, Ingredient p_i50023_5_, ItemStack p_i50023_6_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(IInventory p_77572_1_) boolean
canCraftInDimensions
(int p_194133_1_, int p_194133_2_) getGroup()
getId()
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 Details
-
ingredient
-
result
-
type
-
serializer
-
id
-
group
-
-
Constructor Details
-
SingleItemRecipe
public SingleItemRecipe(IRecipeType<?> p_i50023_1_, IRecipeSerializer<?> p_i50023_2_, ResourceLocation p_i50023_3_, String p_i50023_4_, Ingredient p_i50023_5_, ItemStack p_i50023_6_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceIRecipe<IInventory>
-
getSerializer
- Specified by:
getSerializer
in interfaceIRecipe<IInventory>
-
getId
- Specified by:
getId
in interfaceIRecipe<IInventory>
-
getGroup
- Specified by:
getGroup
in interfaceIRecipe<IInventory>
-
getResultItem
- Specified by:
getResultItem
in interfaceIRecipe<IInventory>
-
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
- Specified by:
assemble
in interfaceIRecipe<IInventory>
-