Class SetLoreFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetLoreFunction
- All Implemented Interfaces:
- BiFunction<ItemStack,,- LootContext, - ItemStack> - LootItemFunction,- LootContextUser
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SetLoreFunction>private final booleanprivate final Optional<LootContext.EntityTarget>Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionSetLoreFunction(List<LootItemCondition> p_81085_, boolean p_81084_, List<Component> p_298633_, Optional<LootContext.EntityTarget> p_298623_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate ListTaggetLoreTag(ItemStack p_81092_, boolean p_81093_) Set<LootContextParam<?>>getType()run(ItemStack p_81089_, LootContext p_81090_) static SetLoreFunction.BuildersetLore()Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionapply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThen
- 
Field Details- 
CODEC
- 
replaceprivate final boolean replace
- 
lore
- 
resolutionContext
 
- 
- 
Constructor Details- 
SetLoreFunctionpublic SetLoreFunction(List<LootItemCondition> p_81085_, boolean p_81084_, List<Component> p_298633_, Optional<LootContext.EntityTarget> p_298623_) 
 
- 
- 
Method Details- 
getType
- 
getReferencedContextParams
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
getLoreTag
- 
setLore
 
-