Class BarrelTapRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
tech.anonymoushacker1279.immersiveweapons.item.crafting.BarrelTapRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SingleRecipeInput>
public class BarrelTapRecipe
extends net.minecraft.world.item.crafting.SingleItemRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.SingleItemRecipe
net.minecraft.world.item.crafting.SingleItemRecipe.Factory<T>Nested 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<BarrelTapRecipe> static final net.minecraft.world.item.crafting.RecipeSerializer<BarrelTapRecipe> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BarrelTapRecipe> Fields inherited from class net.minecraft.world.item.crafting.SingleItemRecipe
commonInfoFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBarrelTapRecipe(net.minecraft.world.item.crafting.Ingredient material, int materialCount, net.minecraft.world.item.ItemStackTemplate result) -
Method Summary
Modifier and TypeMethodDescriptionintnet.minecraft.world.item.crafting.RecipeSerializer<? extends net.minecraft.world.item.crafting.SingleItemRecipe> net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.SingleItemRecipe> getType()group()booleanbooleanmatches(net.minecraft.world.item.crafting.SingleRecipeInput input, net.minecraft.world.level.Level level) net.minecraft.world.item.crafting.RecipeBookCategoryMethods inherited from class net.minecraft.world.item.crafting.SingleItemRecipe
assemble, input, placementInfo, result, showNotification, simpleMapCodec, simpleStreamCodecMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
display
-
Field Details
-
MAP_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BarrelTapRecipe> STREAM_CODEC -
SERIALIZER
-
-
Constructor Details
-
BarrelTapRecipe
public BarrelTapRecipe(net.minecraft.world.item.crafting.Ingredient material, int materialCount, net.minecraft.world.item.ItemStackTemplate result)
-
-
Method Details
-
getMaterialCount
public int getMaterialCount() -
matches
public boolean matches(net.minecraft.world.item.crafting.SingleRecipeInput input, net.minecraft.world.level.Level level) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SingleRecipeInput>- Overrides:
matchesin classnet.minecraft.world.item.crafting.SingleItemRecipe
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<? extends net.minecraft.world.item.crafting.SingleItemRecipe> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SingleRecipeInput>- Specified by:
getSerializerin classnet.minecraft.world.item.crafting.SingleItemRecipe
-
getType
public net.minecraft.world.item.crafting.RecipeType<? extends net.minecraft.world.item.crafting.SingleItemRecipe> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SingleRecipeInput>- Specified by:
getTypein classnet.minecraft.world.item.crafting.SingleItemRecipe
-
recipeBookCategory
public net.minecraft.world.item.crafting.RecipeBookCategory recipeBookCategory() -
isSpecial
public boolean isSpecial() -
group
-