Class RecipeBookMechanicalCraftingRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
com.simibubi.create.content.kinetics.crafter.MechanicalCraftingRecipe
com.petrolpark.compat.create.core.recipe.RecipeBookMechanicalCraftingRecipe
- 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 RecipeBookMechanicalCraftingRecipe
extends com.simibubi.create.content.kinetics.crafter.MechanicalCraftingRecipe
implements IBookRequiredRecipe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RecipeBookMechanicalCraftingRecipe> protected net.minecraft.network.chat.Componentstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, RecipeBookMechanicalCraftingRecipe> Fields inherited from class net.minecraft.world.item.crafting.ShapedRecipe
pattern, resultFields inherited from interface com.petrolpark.core.recipe.INamedRecipe
UNKNOWN_RECIPE_TRANSLATION_KEYFields inherited from interface net.minecraft.world.item.crafting.Recipe
CONDITIONAL_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionRecipeBookMechanicalCraftingRecipe(String groupIn, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, net.minecraft.world.item.ItemStack recipeOutputIn, boolean acceptMirrored) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentgetName(net.minecraft.resources.ResourceLocation recipeId) booleanisBookRequired(net.minecraft.world.level.Level level) protected voidsetName(net.minecraft.network.chat.Component name) Methods inherited from class com.simibubi.create.content.kinetics.crafter.MechanicalCraftingRecipe
acceptsMirrored, getSerializer, getType, isSpecial, matchesMethods inherited from class net.minecraft.world.item.crafting.ShapedRecipe
assemble, canCraftInDimensions, category, getGroup, getHeight, getIngredients, getResultItem, getWidth, isIncomplete, 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
getRemainingItems, getToastSymbol
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,RecipeBookMechanicalCraftingRecipe> STREAM_CODEC -
name
protected net.minecraft.network.chat.Component name
-
-
Constructor Details
-
RecipeBookMechanicalCraftingRecipe
public RecipeBookMechanicalCraftingRecipe(String groupIn, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, net.minecraft.world.item.ItemStack recipeOutputIn, boolean acceptMirrored)
-
-
Method Details
-
isBookRequired
public boolean isBookRequired(net.minecraft.world.level.Level level) - Specified by:
isBookRequiredin interfaceIBookRequiredRecipe
-
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
-