Package de.cech12.bucketlib.api.crafting
Class BlockIngredient.Serializer
java.lang.Object
de.cech12.bucketlib.api.crafting.BlockIngredient.Serializer
- All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
- Enclosing class:
BlockIngredient
public static final class BlockIngredient.Serializer
extends Object
implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockIngredient.Serializerstatic final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<BlockIngredient> getCodec(boolean allowEmpty) net.minecraft.resources.ResourceLocationnet.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BlockIngredient>
-
Field Details
-
INSTANCE
-
NAME
public static final net.minecraft.resources.ResourceLocation NAME
-
-
Method Details
-
getIdentifier
public net.minecraft.resources.ResourceLocation getIdentifier()- Specified by:
getIdentifierin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
getCodec
- Specified by:
getCodecin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-
getPacketCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,BlockIngredient> getPacketCodec()- Specified by:
getPacketCodecin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<BlockIngredient>
-