类 EnchantRandomlyLootFunction
- java.lang.Object
-
- net.minecraft.loot.function.ConditionalLootFunction
-
- net.minecraft.loot.function.EnchantRandomlyLootFunction
-
- 所有已实现的接口:
BiFunction<ItemStack,LootContext,ItemStack>,LootContextAware,LootFunction
public class EnchantRandomlyLootFunction extends ConditionalLootFunction
- Mappings:
Namespace Name official ditintermediary net/minecraft/class_109named net/minecraft/loot/function/EnchantRandomlyLootFunction
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classEnchantRandomlyLootFunction.Builderstatic classEnchantRandomlyLootFunction.Serializer-
从类继承的嵌套类/接口 net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner
-
-
字段概要
字段 修饰符和类型 字段 说明 private List<Enchantment>enchantmentsprivate static LoggerLOGGER-
从类继承的字段 net.minecraft.loot.function.ConditionalLootFunction
conditions
-
-
构造器概要
构造器 限定符 构造器 说明 privateEnchantRandomlyLootFunction(LootCondition[] conditions, Collection<Enchantment> enchantments)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private static ItemStackaddEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)static ConditionalLootFunction.Builder<?>builder()static EnchantRandomlyLootFunction.Buildercreate()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
-
从接口继承的方法 net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLdit;a:Lorg/apache/logging/log4j/Logger;intermediary field_1031Lnet/minecraft/class_109;field_1031:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/loot/function/EnchantRandomlyLootFunction;LOGGER:Lorg/apache/logging/log4j/Logger;
-
enchantments
private final List<Enchantment> enchantments
- Mappings:
Namespace Name Mixin selector official bLdit;b:Ljava/util/List;intermediary field_1030Lnet/minecraft/class_109;field_1030:Ljava/util/List;named enchantmentsLnet/minecraft/loot/function/EnchantRandomlyLootFunction;enchantments:Ljava/util/List;
-
-
构造器详细资料
-
EnchantRandomlyLootFunction
private EnchantRandomlyLootFunction(LootCondition[] conditions, Collection<Enchantment> enchantments)
- Mappings:
Namespace Name Mixin selector official <init>Ldit;<init>([Ldkh;Ljava/util/Collection;)Vintermediary <init>Lnet/minecraft/class_109;<init>([Lnet/minecraft/class_5341;Ljava/util/Collection;)Vnamed <init>Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;<init>([Lnet/minecraft/loot/condition/LootCondition;Ljava/util/Collection;)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;
-
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;
-
addEnchantmentToStack
private static ItemStack addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)
- Mappings:
Namespace Name Mixin selector official aLdit;a(Lbpr;Lbtl;Ljava/util/Random;)Lbpr;intermediary method_26266Lnet/minecraft/class_109;method_26266(Lnet/minecraft/class_1799;Lnet/minecraft/class_1887;Ljava/util/Random;)Lnet/minecraft/class_1799;named addEnchantmentToStackLnet/minecraft/loot/function/EnchantRandomlyLootFunction;addEnchantmentToStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/enchantment/Enchantment;Ljava/util/Random;)Lnet/minecraft/item/ItemStack;
-
create
public static EnchantRandomlyLootFunction.Builder create()
- Mappings:
Namespace Name Mixin selector official cLdit;c()Ldit$a;intermediary method_35520Lnet/minecraft/class_109;method_35520()Lnet/minecraft/class_109$class_4954;named createLnet/minecraft/loot/function/EnchantRandomlyLootFunction;create()Lnet/minecraft/loot/function/EnchantRandomlyLootFunction$Builder;
-
builder
public static ConditionalLootFunction.Builder<?> builder()
- Mappings:
Namespace Name Mixin selector official dLdit;d()Ldiz$a;intermediary method_489Lnet/minecraft/class_109;method_489()Lnet/minecraft/class_120$class_121;named builderLnet/minecraft/loot/function/EnchantRandomlyLootFunction;builder()Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
-
-