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