/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.mojang.serialization.Codec */ package net.minecraft.world.damagesource; import com.mojang.serialization.Codec; import net.minecraft.util.StringRepresentable; public enum DamageScaling implements StringRepresentable { NEVER("never"), WHEN_CAUSED_BY_LIVING_NON_PLAYER("when_caused_by_living_non_player"), ALWAYS("always"); public static final Codec CODEC; private final String id; private DamageScaling(String id) { this.id = id; } @Override public String getSerializedName() { return this.id; } static { CODEC = StringRepresentable.fromEnum(DamageScaling::values); } }