package net.minecraft.world.item.enchantment;

import net.minecraft.util.WeighedRandom;

public class EnchantmentInstance extends WeighedRandom.WeighedRandomItem {
    public final Enchantment enchantment;
    public final int level;
    
    public EnchantmentInstance(final Enchantment bnw, final int integer) {
        super(bnw.getRarity().getWeight());
        this.enchantment = bnw;
        this.level = integer;
    }
}
