Package net.minecraft.enchantment
Class EnchantmentLevelEntry
java.lang.Object
net.minecraft.util.collection.Weighted.Absent
net.minecraft.enchantment.EnchantmentLevelEntry
- All Implemented Interfaces:
 Weighted
Represents an entry in an enchantments array, i.e. a pair between
 enchantment and level. This is also a weighted entry and is available
 for the weighted picker to pick from a list.
 
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.
- Mappings:
 Namespace Name named net/minecraft/enchantment/EnchantmentLevelEntryintermediary net/minecraft/class_1889official daf
- 
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.collection.Weighted
Weighted.Absent, Weighted.Present<T> - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class net.minecraft.util.collection.Weighted.Absent
getWeight 
- 
Field Details
- 
enchantment
- Mappings:
 Namespace Name Mixin selector named enchantmentLnet/minecraft/enchantment/EnchantmentLevelEntry;enchantment:Lnet/minecraft/registry/entry/RegistryEntry;intermediary field_9093Lnet/minecraft/class_1889;field_9093:Lnet/minecraft/class_6880;official aLdaf;a:Ljm;
 - 
level
public final int level- Mappings:
 Namespace Name Mixin selector named levelLnet/minecraft/enchantment/EnchantmentLevelEntry;level:Iintermediary field_9094Lnet/minecraft/class_1889;field_9094:Iofficial bLdaf;b:I
 
 - 
 - 
Constructor Details
- 
EnchantmentLevelEntry
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/enchantment/EnchantmentLevelEntry;<init>(Lnet/minecraft/registry/entry/RegistryEntry;I)Vintermediary <init>Lnet/minecraft/class_1889;<init>(Lnet/minecraft/class_6880;I)Vofficial <init>Ldaf;<init>(Ljm;I)V
 
 -