类 SetLoreLootFunction
- java.lang.Object
-
- net.minecraft.loot.function.ConditionalLootFunction
-
- net.minecraft.loot.function.SetLoreLootFunction
-
- 所有已实现的接口:
BiFunction<ItemStack,LootContext,ItemStack>,LootContextAware,LootFunction
public class SetLoreLootFunction extends ConditionalLootFunction
- Mappings:
Namespace Name official djlintermediary net/minecraft/class_3671named net/minecraft/loot/function/SetLoreLootFunction
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSetLoreLootFunction.Builderstatic classSetLoreLootFunction.Serializer-
从类继承的嵌套类/接口 net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Joiner
-
-
字段概要
字段 修饰符和类型 字段 说明 private LootContext.EntityTargetentityprivate List<Text>loreprivate booleanreplace-
从类继承的字段 net.minecraft.loot.function.ConditionalLootFunction
conditions
-
-
构造器概要
构造器 构造器 说明 SetLoreLootFunction(LootCondition[] conditions, boolean replace, List<Text> lore, LootContext.EntityTarget entity)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private @Nullable ListTaggetLoreForMerge(ItemStack stack, boolean otherLoreExists)Set<LootContextParameter<?>>getRequiredParameters()LootFunctionTypegetType()static SetLoreLootFunction.Buildermethod_35544()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
-
-
-
-
字段详细资料
-
replace
private final boolean replace
- Mappings:
Namespace Name Mixin selector official aLdjl;a:Zintermediary field_16232Lnet/minecraft/class_3671;field_16232:Znamed replaceLnet/minecraft/loot/function/SetLoreLootFunction;replace:Z
-
lore
private final List<Text> lore
- Mappings:
Namespace Name Mixin selector official bLdjl;b:Ljava/util/List;intermediary field_16231Lnet/minecraft/class_3671;field_16231:Ljava/util/List;named loreLnet/minecraft/loot/function/SetLoreLootFunction;lore:Ljava/util/List;
-
entity
@Nullable private final LootContext.EntityTarget entity
- Mappings:
Namespace Name Mixin selector official cLdjl;c:Ldhp$c;intermediary field_16233Lnet/minecraft/class_3671;field_16233:Lnet/minecraft/class_47$class_50;named entityLnet/minecraft/loot/function/SetLoreLootFunction;entity:Lnet/minecraft/loot/context/LootContext$EntityTarget;
-
-
构造器详细资料
-
SetLoreLootFunction
public SetLoreLootFunction(LootCondition[] conditions, boolean replace, List<Text> lore, @Nullable LootContext.EntityTarget entity)
- Mappings:
Namespace Name Mixin selector official <init>Ldjl;<init>([Ldkh;ZLjava/util/List;Ldhp$c;)Vintermediary <init>Lnet/minecraft/class_3671;<init>([Lnet/minecraft/class_5341;ZLjava/util/List;Lnet/minecraft/class_47$class_50;)Vnamed <init>Lnet/minecraft/loot/function/SetLoreLootFunction;<init>([Lnet/minecraft/loot/condition/LootCondition;ZLjava/util/List;Lnet/minecraft/loot/context/LootContext$EntityTarget;)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;
-
getLoreForMerge
@Nullable private @Nullable ListTag getLoreForMerge(ItemStack stack, boolean otherLoreExists)
- Mappings:
Namespace Name Mixin selector official aLdjl;a(Lbpr;Z)Lnb;intermediary method_15964Lnet/minecraft/class_3671;method_15964(Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_2499;named getLoreForMergeLnet/minecraft/loot/function/SetLoreLootFunction;getLoreForMerge(Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/nbt/ListTag;
-
method_35544
public static SetLoreLootFunction.Builder method_35544()
- Mappings:
Namespace Name Mixin selector official cLdjl;c()Ldjl$a;intermediary method_35544Lnet/minecraft/class_3671;method_35544()Lnet/minecraft/class_3671$class_6159;named method_35544Lnet/minecraft/loot/function/SetLoreLootFunction;method_35544()Lnet/minecraft/loot/function/SetLoreLootFunction$Builder;
-
-