Class BookRequiredCraftingRecipe
java.lang.Object
com.petrolpark.core.recipe.crafting.WrappedCraftingRecipe
com.petrolpark.core.recipe.crafting.BookRequiredCraftingRecipe
- All Implemented Interfaces:
IBookRequiredRecipe,INamedRecipe,net.minecraft.world.item.crafting.CraftingRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
public class BookRequiredCraftingRecipe
extends WrappedCraftingRecipe
implements IBookRequiredRecipe
-
Field Summary
FieldsFields inherited from class com.petrolpark.core.recipe.crafting.WrappedCraftingRecipe
wrappedRecipeFields inherited from interface com.petrolpark.core.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 com.petrolpark.core.recipe.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
-