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