类 SetEnchantmentsLootFunction
- java.lang.Object
-
- net.minecraft.loot.function.ConditionalLootFunction
-
- net.minecraft.loot.function.SetEnchantmentsLootFunction
-
- 所有已实现的接口:
BiFunction<ItemStack,LootContext,ItemStack>,LootContextAware,LootFunction
public class SetEnchantmentsLootFunction extends ConditionalLootFunction
- Mappings:
Namespace Name official djiintermediary net/minecraft/class_5642named net/minecraft/loot/function/SetEnchantmentsLootFunction
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSetEnchantmentsLootFunction.Builderstatic classSetEnchantmentsLootFunction.Serializer-
从类继承的嵌套类/接口 net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanaddprivate Map<Enchantment,LootNumberProvider>enchantments-
从类继承的字段 net.minecraft.loot.function.ConditionalLootFunction
conditions
-
-
构造器概要
构造器 限定符 构造器 说明 privateSetEnchantmentsLootFunction(LootCondition[] conditions, Map<Enchantment,LootNumberProvider> enchantments, boolean add)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private static voidaddEnchantmentToMap(Map<Enchantment,Integer> map, Enchantment enchantment, int level)Set<LootContextParameter<?>>getRequiredParameters()LootFunctionTypegetType()ItemStackprocess(ItemStack stack, LootContext context)-
从类继承的方法 net.minecraft.loot.function.ConditionalLootFunction
apply, builder, validate
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.util.function.BiFunction
andThen
-
-
-
-
字段详细资料
-
enchantments
private final Map<Enchantment,LootNumberProvider> enchantments
- Mappings:
Namespace Name Mixin selector official aLdji;a:Ljava/util/Map;intermediary field_27907Lnet/minecraft/class_5642;field_27907:Ljava/util/Map;named enchantmentsLnet/minecraft/loot/function/SetEnchantmentsLootFunction;enchantments:Ljava/util/Map;
-
add
private final boolean add
- Mappings:
Namespace Name Mixin selector official bLdji;b:Zintermediary field_27908Lnet/minecraft/class_5642;field_27908:Znamed addLnet/minecraft/loot/function/SetEnchantmentsLootFunction;add:Z
-
-
构造器详细资料
-
SetEnchantmentsLootFunction
private SetEnchantmentsLootFunction(LootCondition[] conditions, Map<Enchantment,LootNumberProvider> enchantments, boolean add)
- Mappings:
Namespace Name Mixin selector official <init>Ldji;<init>([Ldkh;Ljava/util/Map;Z)Vintermediary <init>Lnet/minecraft/class_5642;<init>([Lnet/minecraft/class_5341;Ljava/util/Map;Z)Vnamed <init>Lnet/minecraft/loot/function/SetEnchantmentsLootFunction;<init>([Lnet/minecraft/loot/condition/LootCondition;Ljava/util/Map;Z)V
-
-
方法详细资料
-
getType
public LootFunctionType getType()
- Mappings:
Namespace Name Mixin selector official aLdja;a()Ldjb;intermediary method_29321Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;named getTypeLnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;
-
getRequiredParameters
public Set<LootContextParameter<?>> getRequiredParameters()
- Mappings:
Namespace Name Mixin selector official bLdhq;b()Ljava/util/Set;intermediary method_293Lnet/minecraft/class_46;method_293()Ljava/util/Set;named getRequiredParametersLnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
-
process
public ItemStack process(ItemStack stack, LootContext context)
- 指定者:
process在类中ConditionalLootFunction- Mappings:
Namespace Name Mixin selector official aLdiz;a(Lbpr;Ldhp;)Lbpr;intermediary method_522Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;named processLnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
-
addEnchantmentToMap
private static void addEnchantmentToMap(Map<Enchantment,Integer> map, Enchantment enchantment, int level)
- Mappings:
Namespace Name Mixin selector official aLdji;a(Ljava/util/Map;Lbtl;I)Vintermediary method_32411Lnet/minecraft/class_5642;method_32411(Ljava/util/Map;Lnet/minecraft/class_1887;I)Vnamed addEnchantmentToMapLnet/minecraft/loot/function/SetEnchantmentsLootFunction;addEnchantmentToMap(Ljava/util/Map;Lnet/minecraft/enchantment/Enchantment;I)V
-
-