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 bhx, final int integer) {
        super(bhx.getRarity().getWeight());
        this.enchantment = bhx;
        this.level = integer;
    }
}
