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(); }