public class EnchantmentLevelEntry extends WeightedPicker.Entry
This is usually used where multiple enchantment to level mappings can
exist, such as in enchanting logic. In other cases, vanilla prefers
Map<Enchantment, Integer> over List<EnchantmentLevelEntry>.
This class is immutable. It does not override hashCode or equals.
| Modifier and Type | Field and Description |
|---|---|
Enchantment |
enchantment |
int |
level |
weight| Constructor and Description |
|---|
EnchantmentLevelEntry(Enchantment enchantment,
int level) |
public final Enchantment enchantment
public final int level
public EnchantmentLevelEntry(Enchantment enchantment, int level)