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