public class SetLoreLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetLoreLootFunction.Serializer |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private LootContext.EntityTarget |
entity |
private List<Text> |
lore |
private boolean |
replace |
conditions
Constructor and Description |
---|
SetLoreLootFunction(LootCondition[] conditions,
boolean replace,
List<Text> lore,
LootContext.EntityTarget entity) |
Modifier and Type | Method and Description |
---|---|
private ListTag |
getLoreForMerge(ItemStack stack,
boolean otherLoreExists) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
andThen
private final boolean replace
@Nullable private final LootContext.EntityTarget entity
public SetLoreLootFunction(LootCondition[] conditions, boolean replace, List<Text> lore, @Nullable LootContext.EntityTarget entity)
public LootFunctionType getType()
public Set<LootContextParameter<?>> getRequiredParameters()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction