Package net.minecraft.enchantment
Class EnchantmentLevelEntry
java.lang.Object
net.minecraft.class_6008.class_6009
net.minecraft.enchantment.EnchantmentLevelEntry
- All Implemented Interfaces:
class_6008
public class EnchantmentLevelEntry extends class_6008.class_6009
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 official bto
intermediary net/minecraft/class_1889
named net/minecraft/enchantment/EnchantmentLevelEntry
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_6008
class_6008.class_6009, class_6008.class_6010<T>
-
Field Summary
Fields Modifier and Type Field Description Enchantment
enchantment
int
level
-
Constructor Summary
Constructors Constructor Description EnchantmentLevelEntry(Enchantment enchantment, int level)
-
Method Summary
Methods inherited from class net.minecraft.class_6008.class_6009
method_34979
-
Field Details
-
enchantment
- Mappings:
Namespace Name Mixin selector official a
Lbto;a:Lbtl;
intermediary field_9093
Lnet/minecraft/class_1889;field_9093:Lnet/minecraft/class_1887;
named enchantment
Lnet/minecraft/enchantment/EnchantmentLevelEntry;enchantment:Lnet/minecraft/enchantment/Enchantment;
-
level
public final int level- Mappings:
Namespace Name Mixin selector official b
Lbto;b:I
intermediary field_9094
Lnet/minecraft/class_1889;field_9094:I
named level
Lnet/minecraft/enchantment/EnchantmentLevelEntry;level:I
-
-
Constructor Details
-
EnchantmentLevelEntry
- Mappings:
Namespace Name Mixin selector official <init>
Lbto;<init>(Lbtl;I)V
intermediary <init>
Lnet/minecraft/class_1889;<init>(Lnet/minecraft/class_1887;I)V
named <init>
Lnet/minecraft/enchantment/EnchantmentLevelEntry;<init>(Lnet/minecraft/enchantment/Enchantment;I)V
-