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 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
Modifier and TypeFieldDescriptionprivate final List<ITextComponent>
private final boolean
private final LootContext.EntityTarget
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
Constructor Summary
ConstructorDescriptionSetLore
(ILootCondition[] p_i51220_1_, boolean p_i51220_2_, List<ITextComponent> p_i51220_3_, LootContext.EntityTarget p_i51220_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate ListNBT
getLoreTag
(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, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
run
in classLootFunction
-
getLoreTag
-