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