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

46 lines
1.2 KiB
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.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.util.StringRepresentable;
public enum DamageEffects implements StringRepresentable
{
HURT("hurt", SoundEvents.PLAYER_HURT),
THORNS("thorns", SoundEvents.PLAYER_HURT),
DROWNING("drowning", SoundEvents.PLAYER_HURT_DROWN),
BURNING("burning", SoundEvents.PLAYER_HURT_ON_FIRE),
POKING("poking", SoundEvents.PLAYER_HURT_SWEET_BERRY_BUSH),
FREEZING("freezing", SoundEvents.PLAYER_HURT_FREEZE);
public static final Codec<DamageEffects> CODEC;
private final String id;
private final SoundEvent sound;
private DamageEffects(String id, SoundEvent sound) {
this.id = id;
this.sound = sound;
}
@Override
public String getSerializedName() {
return this.id;
}
public SoundEvent sound() {
return this.sound;
}
static {
CODEC = StringRepresentable.fromEnum(DamageEffects::values);
}
}