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.MapCodec<IngredientAny> static IngredientAnySerializerstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, IngredientAny> -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<IngredientAny> codec()net.minecraft.resources.ResourceLocationgetId()net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, IngredientAny>
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,IngredientAny> STREAM_CODEC -
INSTANCE
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfaceCraftTweakerVanillaIngredientSerializer<IngredientAny>
-
codec
- Specified by:
codecin interfaceCraftTweakerVanillaIngredientSerializer<IngredientAny>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,IngredientAny> streamCodec()- Specified by:
streamCodecin interfaceCraftTweakerVanillaIngredientSerializer<IngredientAny>
-