diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2023-07-02 01:32:49 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2023-07-02 01:32:49 -0300 |
commit | 12048dc1a1cf01f8a0f37ced83af78b57a35b4cd (patch) | |
tree | ec521c2f2f4694ffa35012518fcec9c7b1fca002 /src/main/java/ganarchy/chewstuff/ChewComponent.java | |
parent | e9fda053b04038c772d7fc0010f6c10557e0d83e (diff) |
Diffstat (limited to 'src/main/java/ganarchy/chewstuff/ChewComponent.java')
-rw-r--r-- | src/main/java/ganarchy/chewstuff/ChewComponent.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/ganarchy/chewstuff/ChewComponent.java b/src/main/java/ganarchy/chewstuff/ChewComponent.java index 4b6dcd8..aefa539 100644 --- a/src/main/java/ganarchy/chewstuff/ChewComponent.java +++ b/src/main/java/ganarchy/chewstuff/ChewComponent.java @@ -6,7 +6,7 @@ import dev.onyxstudios.cca.api.v3.component.ComponentV3; import net.minecraft.entity.effect.StatusEffect; import net.minecraft.nbt.NbtCompound; import net.minecraft.nbt.NbtOps; -import net.minecraft.util.registry.Registry; +import net.minecraft.registry.Registries; import java.util.*; @@ -20,10 +20,10 @@ public class ChewComponent implements ComponentV3 { public static final Codec<ChewComponent> CODEC = RecordCodecBuilder.create( inst -> inst.group( Codec.unboundedMap( - Registry.STATUS_EFFECT.getCodec(), Codec.INT + Registries.STATUS_EFFECT.getCodec(), Codec.INT ).fieldOf("effects").forGetter(i -> i.effects), Codec.list( - Registry.STATUS_EFFECT.getCodec() + Registries.STATUS_EFFECT.getCodec() ).fieldOf("applied").forGetter(i -> new ArrayList<>(i.applied)), Codec.BOOL.fieldOf("sendUpdate").forGetter(i -> i.sendUpdate) ).apply(inst, ChewComponent::new) |