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 Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescription(package private) final boolean
(package private) final LootContext.EntityTarget
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionSetLoreFunction
(LootItemCondition[] p_81083_, boolean p_81084_, List<Component> p_81085_, LootContext.EntityTarget p_81086_) -
Method Summary
Modifier and TypeMethodDescriptionprivate ListTag
getLoreTag
(ItemStack p_81092_, boolean p_81093_) Set<LootContextParam<?>>
getType()
run
(ItemStack p_81089_, LootContext p_81090_) static SetLoreFunction.Builder
setLore()
Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
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
final boolean replace -
lore
-
resolutionContext
-
-
Constructor Details
-
SetLoreFunction
public SetLoreFunction(LootItemCondition[] p_81083_, boolean p_81084_, List<Component> p_81085_, @Nullable LootContext.EntityTarget p_81086_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
getLoreTag
-
setLore
-