Class BucketFillingShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
de.cech12.bucketlib.item.crafting.BucketFillingShapelessRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
public class BucketFillingShapelessRecipe
extends net.minecraft.world.item.crafting.ShapelessRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBucketFillingShapelessRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients, BucketFillingType fillingType, Optional<net.minecraft.world.level.material.Fluid> fluid, Optional<net.minecraft.world.level.block.Block> block, Optional<net.minecraft.world.entity.EntityType<?>> entityType) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess registryAccess) Returns an Item that is the result of this recipenet.minecraft.world.item.crafting.RecipeSerializer<?>booleanmatches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level level) Used to check if a recipe matches current crafting inventoryMethods inherited from class net.minecraft.world.item.crafting.ShapelessRecipe
canCraftInDimensions, category, getGroup, getIngredients, getResultItemMethods 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, isIncomplete, isSpecial, showNotification
-
Constructor Details
-
BucketFillingShapelessRecipe
public BucketFillingShapelessRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients, BucketFillingType fillingType, Optional<net.minecraft.world.level.material.Fluid> fluid, Optional<net.minecraft.world.level.block.Block> block, Optional<net.minecraft.world.entity.EntityType<?>> entityType)
-
-
Method Details
-
matches
public boolean matches(@Nonnull net.minecraft.world.inventory.CraftingContainer inv, @Nonnull 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.inventory.CraftingContainer>- Overrides:
matchesin classnet.minecraft.world.item.crafting.ShapelessRecipe
-
assemble
@Nonnull public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.inventory.CraftingContainer inv, @Nonnull net.minecraft.core.RegistryAccess registryAccess) Returns an Item that is the result of this recipe- Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
assemblein classnet.minecraft.world.item.crafting.ShapelessRecipe
-
getSerializer
@Nonnull public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.ShapelessRecipe
-