Package net.minecraft.loot.functions
Class SetLore
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.SetLore
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> ILootFunction,IParameterized
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.loot.LootFunction
LootFunction.Builder<T extends LootFunction.Builder<T>>Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ITextComponent>private final booleanprivate final LootContext.EntityTargetFields inherited from class net.minecraft.loot.LootFunction
predicates -
Constructor Summary
ConstructorsConstructorDescriptionSetLore(ILootCondition[] p_i51220_1_, boolean p_i51220_2_, List<ITextComponent> p_i51220_3_, LootContext.EntityTarget p_i51220_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate ListNBTgetLoreTag(ItemStack p_215942_1_, boolean p_215942_2_) Set<LootParameter<?>>getType()run(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
replace
private final boolean replace -
lore
-
resolutionContext
-
-
Constructor Details
-
SetLore
public SetLore(ILootCondition[] p_i51220_1_, boolean p_i51220_2_, List<ITextComponent> p_i51220_3_, @Nullable LootContext.EntityTarget p_i51220_4_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
runin classLootFunction
-
getLoreTag
-