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) 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
-
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
-