Class IngredientIItemStackSerializer
java.lang.Object
com.blamejared.crafttweaker.api.ingredient.vanilla.serializer.IngredientIItemStackSerializer
- All Implemented Interfaces:
CraftTweakerVanillaIngredientSerializer<IngredientIItemStack>
public class IngredientIItemStackSerializer
extends Object
implements CraftTweakerVanillaIngredientSerializer<IngredientIItemStack>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<IngredientIItemStack> static final IngredientIItemStackSerializerstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, IngredientIItemStack> -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<IngredientIItemStack> codec()net.minecraft.resources.ResourceLocationgetId()net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, IngredientIItemStack>
-
Field Details
-
INSTANCE
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,IngredientIItemStack> STREAM_CODEC
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfaceCraftTweakerVanillaIngredientSerializer<IngredientIItemStack>
-
codec
- Specified by:
codecin interfaceCraftTweakerVanillaIngredientSerializer<IngredientIItemStack>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,IngredientIItemStack> streamCodec()- Specified by:
streamCodecin interfaceCraftTweakerVanillaIngredientSerializer<IngredientIItemStack>
-