Skip to content

Commit

Permalink
Update interface methods to use StreamCodec in StateIngredientType
Browse files Browse the repository at this point in the history
  • Loading branch information
artemisSystem committed Nov 17, 2024
1 parent 27d4917 commit 0251ffe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends StateIngredient> {
MapCodec<T> codec();

T fromNetwork(FriendlyByteBuf buffer);

void toNetwork(FriendlyByteBuf buffer, T ingredient);
StreamCodec<RegistryFriendlyByteBuf, T> streamCodec();
}

0 comments on commit 0251ffe

Please sign in to comment.