public class SetLore extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetLore.Serializer |
LootFunction.Builder<T extends LootFunction.Builder<T>>
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private LootContext.EntityTarget |
field_215947_d |
private java.util.List<ITextComponent> |
lore |
private boolean |
replace |
conditions
Constructor and Description |
---|
SetLore(ILootCondition[] p_i51220_1_,
boolean replace,
java.util.List<ITextComponent> lore,
LootContext.EntityTarget p_i51220_4_) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
doApply(ItemStack stack,
LootContext context) |
private ListNBT |
func_215942_a(ItemStack p_215942_1_,
boolean p_215942_2_) |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
apply, builder, func_225580_a_
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
private final boolean replace
private final java.util.List<ITextComponent> lore
@Nullable private final LootContext.EntityTarget field_215947_d
public SetLore(ILootCondition[] p_i51220_1_, boolean replace, java.util.List<ITextComponent> lore, @Nullable LootContext.EntityTarget p_i51220_4_)
public java.util.Set<LootParameter<?>> getRequiredParameters()
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction