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