From 490d0a4f6a0ccb7ee05c659dbbf45f7a291d8e67 Mon Sep 17 00:00:00 2001 From: bconlon Date: Thu, 22 Feb 2024 23:52:44 -0800 Subject: [PATCH] refactor: Use NeoForgeExtraCodecs --- .../com/aetherteam/nitrogen/recipe/BlockStateIngredient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateIngredient.java b/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateIngredient.java index 108240f..49f9063 100644 --- a/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateIngredient.java +++ b/src/main/java/com/aetherteam/nitrogen/recipe/BlockStateIngredient.java @@ -17,6 +17,7 @@ import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.properties.Property; +import net.neoforged.neoforge.common.util.NeoForgeExtraCodecs; import javax.annotation.Nullable; import java.util.*; @@ -228,7 +229,7 @@ public Collection getPairs() { } public interface Value { - Codec CODEC = Util.make(() -> ExtraCodecs.withAlternative(BlockStateIngredient.TagValue.CODEC, ExtraCodecs.withAlternative(BlockStateIngredient.StateValue.CODEC, BlockStateIngredient.BlockValue.CODEC))); + Codec CODEC = Util.make(() -> NeoForgeExtraCodecs.withAlternative(BlockStateIngredient.TagValue.CODEC, NeoForgeExtraCodecs.withAlternative(BlockStateIngredient.StateValue.CODEC, BlockStateIngredient.BlockValue.CODEC))); Collection getPairs(); }