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