Class SetLoreFunction.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<SetLoreFunction.Builder>
net.minecraft.world.level.storage.loot.functions.SetLoreFunction.Builder
- All Implemented Interfaces:
LootItemFunction.Builder
,ConditionUserBuilder<SetLoreFunction.Builder>
- Enclosing class:
- SetLoreFunction
public static class SetLoreFunction.Builder
extends LootItemConditionalFunction.Builder<SetLoreFunction.Builder>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder<Component>
private boolean
private Optional<LootContext.EntityTarget>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected SetLoreFunction.Builder
getThis()
setReplace
(boolean p_165454_) setResolutionContext
(LootContext.EntityTarget p_165450_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder
getConditions, unwrap, when
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.predicates.ConditionUserBuilder
when
-
Field Details
-
replace
private boolean replace -
resolutionContext
-
lore
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setReplace
-
setResolutionContext
-
addLine
-
getThis
- Specified by:
getThis
in classLootItemConditionalFunction.Builder<SetLoreFunction.Builder>
-
build
-