Class IngredientListSerializer
java.lang.Object
com.blamejared.crafttweaker.api.ingredient.vanilla.serializer.IngredientListSerializer
- All Implemented Interfaces:
CraftTweakerVanillaIngredientSerializer<IngredientList>
@ParametersAreNonnullByDefault
public class IngredientListSerializer
extends Object
implements CraftTweakerVanillaIngredientSerializer<IngredientList>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IngredientList>static final IngredientListSerializer -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<IngredientList>codec()decode(net.minecraft.network.FriendlyByteBuf buffer) voidencode(net.minecraft.network.FriendlyByteBuf buffer, IngredientList ingredient) net.minecraft.resources.ResourceLocationgetId()
-
Field Details
-
INSTANCE
-
CODEC
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfaceCraftTweakerVanillaIngredientSerializer<IngredientList>
-
codec
- Specified by:
codecin interfaceCraftTweakerVanillaIngredientSerializer<IngredientList>
-
decode
- Specified by:
decodein interfaceCraftTweakerVanillaIngredientSerializer<IngredientList>
-
encode
- Specified by:
encodein interfaceCraftTweakerVanillaIngredientSerializer<IngredientList>
-