From 0251ffe461649bb07cc16fad8b34b0408ce516f4 Mon Sep 17 00:00:00 2001 From: Artemis System Date: Sun, 17 Nov 2024 21:39:28 +0100 Subject: [PATCH] Update interface methods to use StreamCodec in StateIngredientType --- .../java/vazkii/botania/api/recipe/StateIngredientType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Xplat/src/main/java/vazkii/botania/api/recipe/StateIngredientType.java b/Xplat/src/main/java/vazkii/botania/api/recipe/StateIngredientType.java index 647d8b6954..e25231821b 100644 --- a/Xplat/src/main/java/vazkii/botania/api/recipe/StateIngredientType.java +++ b/Xplat/src/main/java/vazkii/botania/api/recipe/StateIngredientType.java @@ -10,11 +10,11 @@ import com.mojang.serialization.MapCodec; import net.minecraft.network.FriendlyByteBuf; +import net.minecraft.network.RegistryFriendlyByteBuf; +import net.minecraft.network.codec.StreamCodec; public interface StateIngredientType { MapCodec codec(); - T fromNetwork(FriendlyByteBuf buffer); - - void toNetwork(FriendlyByteBuf buffer, T ingredient); + StreamCodec streamCodec(); }