Class RecipeBookTestRecipe
java.lang.Object
net.neoforged.neoforge.oldtest.recipebook.RecipeBookTestRecipe
- All Implemented Interfaces:
Recipe<RecipeBookExtensionTest.RecipeBookTestContainer>
public class RecipeBookTestRecipe
extends Object
implements Recipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final NonNullList<Ingredient> private final intFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(RecipeBookExtensionTest.RecipeBookTestContainer p_44001_, HolderLookup.Provider registryAccess) booleancanCraftInDimensions(int p_43999_, int p_44000_) getGroup()getResultItem(HolderLookup.Provider registryAccess) RecipeType<?> getType()booleanprivate booleanmatches(RecipeBookExtensionTest.RecipeBookTestContainer container, int x, int y, boolean mirror) booleanmatches(RecipeBookExtensionTest.RecipeBookTestContainer container, Level level) Taken fromShapedRecipeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, isSpecial, showNotification
-
Field Details
-
ingredients
-
width
private final int width -
height
private final int height -
items
-
-
Constructor Details
-
RecipeBookTestRecipe
-
-
Method Details
-
matches
Taken fromShapedRecipe- Specified by:
matchesin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
matches
private boolean matches(RecipeBookExtensionTest.RecipeBookTestContainer container, int x, int y, boolean mirror) -
assemble
public ItemStack assemble(RecipeBookExtensionTest.RecipeBookTestContainer p_44001_, HolderLookup.Provider registryAccess) - Specified by:
assemblein interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_43999_, int p_44000_) - Specified by:
canCraftInDimensionsin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getResultItem
- Specified by:
getResultItemin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getType
- Specified by:
getTypein interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getGroup
- Specified by:
getGroupin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getIngredients
- Specified by:
getIngredientsin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
isIncomplete
public boolean isIncomplete()- Specified by:
isIncompletein interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-
getToastSymbol
- Specified by:
getToastSymbolin interfaceRecipe<RecipeBookExtensionTest.RecipeBookTestContainer>
-