Class BucketFillingShapedRecipe
java.lang.Object
net.minecraft.world.item.crafting.NormalCraftingRecipe
net.minecraft.world.item.crafting.ShapedRecipe
de.cech12.bucketlib.item.crafting.BucketFillingShapedRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
public class BucketFillingShapedRecipe
extends net.minecraft.world.item.crafting.ShapedRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfoNested classes/interfaces inherited from interface net.minecraft.world.item.crafting.Recipe
net.minecraft.world.item.crafting.Recipe.BookInfo<CategoryType>, net.minecraft.world.item.crafting.Recipe.CommonInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BucketFillingShapedRecipe> static final net.minecraft.world.item.crafting.RecipeSerializer<BucketFillingShapedRecipe> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BucketFillingShapedRecipe> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBucketFillingShapedRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, BucketFillingType fillingType, Optional<net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid>> fluid, Optional<net.minecraft.core.Holder<net.minecraft.world.level.block.Block>> block, Optional<net.minecraft.core.Holder<net.minecraft.world.entity.EntityType<?>>> entityType) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemStackassemble(@NotNull net.minecraft.world.item.crafting.CraftingInput input) Returns an Item that is the result of this recipe@NotNull net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapedRecipe> booleanmatches(@NotNull net.minecraft.world.item.crafting.CraftingInput input, @NotNull net.minecraft.world.level.Level level) Used to check if a recipe matches current crafting inventoryMethods inherited from class net.minecraft.world.item.crafting.ShapedRecipe
createPlacementInfo, display, getHeight, getIngredients, getWidthMethods inherited from class net.minecraft.world.item.crafting.NormalCraftingRecipe
category, group, placementInfo, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getRemainingItems, getType, recipeBookCategoryMethods inherited from interface net.minecraft.world.item.crafting.Recipe
isSpecial
-
Field Details
-
MAP_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BucketFillingShapedRecipe> STREAM_CODEC -
SERIALIZER
public static final net.minecraft.world.item.crafting.RecipeSerializer<BucketFillingShapedRecipe> SERIALIZER
-
-
Constructor Details
-
BucketFillingShapedRecipe
public BucketFillingShapedRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, BucketFillingType fillingType, Optional<net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid>> fluid, Optional<net.minecraft.core.Holder<net.minecraft.world.level.block.Block>> block, Optional<net.minecraft.core.Holder<net.minecraft.world.entity.EntityType<?>>> entityType)
-
-
Method Details
-
matches
public boolean matches(@NotNull @NotNull net.minecraft.world.item.crafting.CraftingInput input, @NotNull @NotNull net.minecraft.world.level.Level level) Used to check if a recipe matches current crafting inventory- Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
matchesin classnet.minecraft.world.item.crafting.ShapedRecipe
-
assemble
@NotNull public @NotNull net.minecraft.world.item.ItemStack assemble(@NotNull @NotNull net.minecraft.world.item.crafting.CraftingInput input) Returns an Item that is the result of this recipe- Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
assemblein classnet.minecraft.world.item.crafting.ShapedRecipe
-
getSerializer
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapedRecipe> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.CraftingRecipe- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.ShapedRecipe
-