Class BookRequiredCraftingRecipe
java.lang.Object
petrolpark.mc.library.core.world.item.crafting.WrappedCraftingRecipe
petrolpark.mc.library.core.world.item.crafting.BookRequiredCraftingRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>,INamedRecipe,IBookRequiredRecipe
public class BookRequiredCraftingRecipe
extends WrappedCraftingRecipe
implements IBookRequiredRecipe
-
Field Summary
FieldsFields inherited from class petrolpark.mc.library.core.world.item.crafting.WrappedCraftingRecipe
wrappedRecipeFields inherited from interface petrolpark.mc.library.core.data.recipe.INamedRecipe
UNKNOWN_RECIPE_TRANSLATION_KEYFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBookRequiredCraftingRecipe(net.minecraft.world.item.crafting.CraftingRecipe wrappedRecipe) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentgetName(net.minecraft.resources.ResourceLocation recipeId) net.minecraft.world.item.crafting.RecipeSerializer<BookRequiredCraftingRecipe> net.minecraft.world.item.crafting.RecipeType<BookRequiredCraftingRecipe> getType()booleanisBookRequired(net.minecraft.world.level.Level level) protected voidsetName(net.minecraft.network.chat.Component name) static Stream<net.minecraft.world.item.crafting.RecipeHolder<BookRequiredCraftingRecipe>> streamMatching(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.stats.RecipeBook recipeBook, net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu) Methods inherited from class petrolpark.mc.library.core.world.item.crafting.WrappedCraftingRecipe
assemble, canCraftInDimensions, category, getGroup, getIngredients, getRemainingItems, getResultItem, getToastSymbol, getWrappedRecipe, isSpecial, matches, serializer, showNotificationMethods 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
isIncomplete
-
Field Details
-
name
protected net.minecraft.network.chat.Component name
-
-
Constructor Details
-
BookRequiredCraftingRecipe
public BookRequiredCraftingRecipe(net.minecraft.world.item.crafting.CraftingRecipe wrappedRecipe)
-
-
Method Details
-
streamMatching
public static Stream<net.minecraft.world.item.crafting.RecipeHolder<BookRequiredCraftingRecipe>> streamMatching(net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.CraftingInput input, @Nullable net.minecraft.stats.RecipeBook recipeBook, @Nullable net.minecraft.world.entity.player.Player player, @Nullable net.minecraft.world.inventory.AbstractContainerMenu menu) -
setName
protected void setName(net.minecraft.network.chat.Component name) -
getName
public net.minecraft.network.chat.Component getName(net.minecraft.resources.ResourceLocation recipeId) - Specified by:
getNamein interfaceINamedRecipe
-
getType
- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.CraftingRecipe- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<BookRequiredCraftingRecipe> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
-
isBookRequired
public boolean isBookRequired(net.minecraft.world.level.Level level) - Specified by:
isBookRequiredin interfaceIBookRequiredRecipe
-