blob: 5c30595951ba6da61e24cf81da2120f630c4a30e [file] [log] [blame] [raw]
package net.glowstone.inventory;
import net.glowstone.constants.GlowEnchantment;
import net.glowstone.util.WeightedRandom.Choice;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.enchantments.EnchantmentOffer;
public class LeveledEnchant extends EnchantmentOffer implements Choice {
public LeveledEnchant(Enchantment enchantment, int enchantmentLevel, int cost) {
super(enchantment, enchantmentLevel, cost);
}
@Override
public int getWeight() {
return ((GlowEnchantment) getEnchantment()).getWeight();
}
}