Class EnchantmentInstance
java.lang.Object
net.minecraft.util.random.WeightedEntry.IntrusiveBase
net.minecraft.world.item.enchantment.EnchantmentInstance
- All Implemented Interfaces:
WeightedEntry
Defines an immutable instance of an enchantment and its level.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.random.WeightedEntry
WeightedEntry.IntrusiveBase, WeightedEntry.Wrapper<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Holder
<Enchantment> The enchantment being represented.final int
The level of the enchantment. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.util.random.WeightedEntry.IntrusiveBase
getWeight
-
Field Details
-
enchantment
The enchantment being represented. -
level
public final int levelThe level of the enchantment.
-
-
Constructor Details
-
EnchantmentInstance
-