2025-11-24 22:52:51 +03:00

35 lines
749 B
Java

/*
* 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<DamageScaling> 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);
}
}