Package com.petrolpark.core.item.wooden
Class WoodCraftingShapedRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
com.petrolpark.core.item.wooden.WoodCraftingShapedRecipe
- All Implemented Interfaces:
IRecyclableRecipe,net.minecraft.world.item.crafting.CraftingRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
public class WoodCraftingShapedRecipe
extends net.minecraft.world.item.crafting.ShapedRecipe
implements IRecyclableRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final com.mojang.serialization.MapCodec<WoodCraftingShapedRecipe> static final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final com.mojang.serialization.MapCodec<net.minecraft.world.item.crafting.ShapedRecipePattern> static final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, WoodCraftingShapedRecipe> static final net.minecraft.world.item.crafting.Ingredientstatic final net.minecraft.world.item.crafting.Ingredientprotected static final Map<net.minecraft.world.item.crafting.Ingredient, Function<? super net.minecraft.world.item.ItemStack, WoodHelper.Wood>> Fields inherited from class net.minecraft.world.item.crafting.ShapedRecipe
pattern, resultFields inherited from interface net.minecraft.world.item.crafting.Recipe
CONDITIONAL_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionWoodCraftingShapedRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, net.minecraft.world.item.ItemStack result, boolean showNotification) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.CraftingInput input, boolean mirrored) net.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries) net.minecraft.world.item.crafting.ShapedRecipePatterngetRecyclingOutputs(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) Get (optionally) the Items that would have been used to craft the given Item Stack with this Recipe, wrapped asRecyclingOutputs.net.minecraft.world.item.ItemStackgetResult(WoodHelper.Wood wood) static final WoodHelper.WoodgetWood(net.minecraft.world.item.ItemStack stack) booleanmatches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level) static final com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.ShapedRecipePattern.Data> packPattern(net.minecraft.world.item.crafting.ShapedRecipePattern pattern) static final voidregister(Character character, net.minecraft.world.item.crafting.Ingredient ingredient, Function<? super net.minecraft.world.item.ItemStack, WoodHelper.Wood> woodGetter) Stream<net.minecraft.world.item.crafting.Ingredient> Stream<net.minecraft.world.item.crafting.Ingredient> streamSpecificIngredientsFor(net.minecraft.world.item.ItemStack result) Stream<net.minecraft.world.item.ItemStack> static final com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.ShapedRecipePattern> unpackPatternData(net.minecraft.world.item.crafting.ShapedRecipePattern.Data patternData) static final Set<Map.Entry<net.minecraft.world.item.crafting.Ingredient, Function<? super net.minecraft.world.item.ItemStack, WoodHelper.Wood>>> Methods inherited from class net.minecraft.world.item.crafting.ShapedRecipe
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.CraftingRecipe
getTypeMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isSpecial
-
Field Details
-
PLANKS_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient PLANKS_INGREDIENT -
SLAB_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient SLAB_INGREDIENT -
STAIRS_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient STAIRS_INGREDIENT -
FENCE_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient FENCE_INGREDIENT -
FENCE_GATE_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient FENCE_GATE_INGREDIENT -
BUTTON_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient BUTTON_INGREDIENT -
LOG_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient LOG_INGREDIENT -
STRIPPED_LOG_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient STRIPPED_LOG_INGREDIENT -
LEAVES_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient LEAVES_INGREDIENT -
SAPLING_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient SAPLING_INGREDIENT -
PRESSURE_PLATE_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient PRESSURE_PLATE_INGREDIENT -
DOOR_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient DOOR_INGREDIENT -
TRAPDOOR_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient TRAPDOOR_INGREDIENT -
SIGN_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient SIGN_INGREDIENT -
HANGING_SIGN_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient HANGING_SIGN_INGREDIENT -
BOAT_INGREDIENT
public static final net.minecraft.world.item.crafting.Ingredient BOAT_INGREDIENT -
BUILT_IN_INGREDIENTS
-
WOOD_GETTERS
protected static final Map<net.minecraft.world.item.crafting.Ingredient,Function<? super net.minecraft.world.item.ItemStack, WOOD_GETTERSWoodHelper.Wood>> -
PATTERN_MAP_CODEC
public static final com.mojang.serialization.MapCodec<net.minecraft.world.item.crafting.ShapedRecipePattern> PATTERN_MAP_CODEC -
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,WoodCraftingShapedRecipe> STREAM_CODEC
-
-
Constructor Details
-
WoodCraftingShapedRecipe
public WoodCraftingShapedRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, net.minecraft.world.item.ItemStack result, boolean showNotification)
-
-
Method Details
-
woodGetterEntries
public static final Set<Map.Entry<net.minecraft.world.item.crafting.Ingredient,Function<? super net.minecraft.world.item.ItemStack, woodGetterEntries()WoodHelper.Wood>>> -
register
public static final void register(Character character, net.minecraft.world.item.crafting.Ingredient ingredient, Function<? super net.minecraft.world.item.ItemStack, WoodHelper.Wood> woodGetter) -
getWood
-
getPattern
public net.minecraft.world.item.crafting.ShapedRecipePattern getPattern() -
unpackPatternData
public static final com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.ShapedRecipePattern> unpackPatternData(net.minecraft.world.item.crafting.ShapedRecipePattern.Data patternData) -
packPattern
public static final com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.ShapedRecipePattern.Data> packPattern(net.minecraft.world.item.crafting.ShapedRecipePattern pattern) -
matches
public boolean matches(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.world.level.Level level) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
matchesin classnet.minecraft.world.item.crafting.ShapedRecipe
-
assemble
public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.core.HolderLookup.Provider registries) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
assemblein classnet.minecraft.world.item.crafting.ShapedRecipe
-
getResult
-
assemble
public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, boolean mirrored) -
streamSpecificIngredientsFor
public Stream<net.minecraft.world.item.crafting.Ingredient> streamSpecificIngredientsFor(net.minecraft.world.item.ItemStack result) -
streamSpecificIngredientsFor
public Stream<net.minecraft.world.item.crafting.Ingredient> streamSpecificIngredientsFor(WoodHelper.Wood wood) -
streamSpecificStacksFor
-
getRecyclingOutputs
public Optional<RecyclingOutputs> getRecyclingOutputs(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) Description copied from interface:IRecyclableRecipeGet (optionally) the Items that would have been used to craft the given Item Stack with this Recipe, wrapped asRecyclingOutputs. This method should not consider the size of this Item Stack (which should always be 1) or replicate the effects of anyRecyclingOutputsModifiers as these will be applied separately.- Specified by:
getRecyclingOutputsin interfaceIRecyclableRecipe- Parameters:
level-stack-- Returns:
- Optional containing the
RecyclingOutputs(possiblyemptyitself) for recycling the given Item Stack as the inverse of this Recipe, or an empty Optional if that Item Stack could never be produced by this Recipe and the recycling should pass to the default handling
-
getSerializer
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.ShapedRecipe
-