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
Nested ClassesModifier and TypeClassDescriptionstatic classSingleItemRecipe.Serializer<T extends SingleItemRecipe> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final ResourceLocationprotected final Ingredientprotected final ItemStackprivate final IRecipeSerializer<?>private final IRecipeType<?> -
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipe(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_) booleancanCraftInDimensions(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, waitMethods 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:
getTypein interfaceIRecipe<IInventory>
-
getSerializer
- Specified by:
getSerializerin interfaceIRecipe<IInventory>
-
getId
- Specified by:
getIdin interfaceIRecipe<IInventory>
-
getGroup
- Specified by:
getGroupin interfaceIRecipe<IInventory>
-
getResultItem
- Specified by:
getResultItemin interfaceIRecipe<IInventory>
-
getIngredients
- Specified by:
getIngredientsin interfaceIRecipe<IInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_) - Specified by:
canCraftInDimensionsin interfaceIRecipe<IInventory>
-
assemble
- Specified by:
assemblein interfaceIRecipe<IInventory>
-