类 EnchantmentLevelEntry
- java.lang.Object
-
- net.minecraft.util.collection.Weighted.Absent
-
- net.minecraft.enchantment.EnchantmentLevelEntry
-
- 所有已实现的接口:
Weighted
public class EnchantmentLevelEntry extends Weighted.Absent
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>overList<EnchantmentLevelEntry>.This class is immutable. It does not override hashCode or equals.
- Mappings:
Namespace Name official btointermediary net/minecraft/class_1889named net/minecraft/enchantment/EnchantmentLevelEntry
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.util.collection.Weighted
Weighted.Absent, Weighted.Present<T>
-
-
字段概要
字段 修饰符和类型 字段 说明 Enchantmentenchantmentintlevel
-
构造器概要
构造器 构造器 说明 EnchantmentLevelEntry(Enchantment enchantment, int level)
-
-
-
字段详细资料
-
enchantment
public final Enchantment enchantment
- Mappings:
Namespace Name Mixin selector official aLbto;a:Lbtl;intermediary field_9093Lnet/minecraft/class_1889;field_9093:Lnet/minecraft/class_1887;named enchantmentLnet/minecraft/enchantment/EnchantmentLevelEntry;enchantment:Lnet/minecraft/enchantment/Enchantment;
-
level
public final int level
- Mappings:
Namespace Name Mixin selector official bLbto;b:Iintermediary field_9094Lnet/minecraft/class_1889;field_9094:Inamed levelLnet/minecraft/enchantment/EnchantmentLevelEntry;level:I
-
-
构造器详细资料
-
EnchantmentLevelEntry
public EnchantmentLevelEntry(Enchantment enchantment, int level)
- Mappings:
Namespace Name Mixin selector official <init>Lbto;<init>(Lbtl;I)Vintermediary <init>Lnet/minecraft/class_1889;<init>(Lnet/minecraft/class_1887;I)Vnamed <init>Lnet/minecraft/enchantment/EnchantmentLevelEntry;<init>(Lnet/minecraft/enchantment/Enchantment;I)V
-
-