net.minestom.server.item.enchant.DamageImmunityEffect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.item.enchant;
import net.minestom.server.utils.Unit;
import net.minestom.server.utils.nbt.BinaryTagSerializer;
import org.jetbrains.annotations.NotNull;
public final class DamageImmunityEffect implements Enchantment.Effect {
public static final DamageImmunityEffect INSTANCE = new DamageImmunityEffect();
public static final @NotNull BinaryTagSerializer NBT_TYPE = BinaryTagSerializer.UNIT
.map(ignored -> DamageImmunityEffect.INSTANCE, ignored -> Unit.INSTANCE);
private DamageImmunityEffect() {}
}