All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.item.enchant.DamageImmunityEffect Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy