Class ConditionalRecipe.Wrapper
java.lang.Object
net.minecraftforge.common.crafting.ConditionalRecipe.Wrapper
- All Implemented Interfaces:
Recipe<CraftingInput>
- Enclosing class:
ConditionalRecipe
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable ICondition
private final List
<ConditionalRecipe.InnerRecipe> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC
-
Constructor Summary
ModifierConstructorDescriptionprivate
Wrapper
(@Nullable ICondition main, List<ConditionalRecipe.InnerRecipe> recipes) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(CraftingInput inv, HolderLookup.Provider reg) boolean
canCraftInDimensions
(int width, int height) RecipeType
<?> getType()
boolean
matches
(CraftingInput inv, Level level) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Field Details
-
main
-
recipes
-
-
Constructor Details
-
Wrapper
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceRecipe<CraftingInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<CraftingInput>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensions
in interfaceRecipe<CraftingInput>
-
getResultItem
- Specified by:
getResultItem
in interfaceRecipe<CraftingInput>
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<CraftingInput>
-
getType
- Specified by:
getType
in interfaceRecipe<CraftingInput>
-