public class SetName extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetName.Serializer |
LootFunction.Builder<T extends LootFunction.Builder<T>>
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private LootContext.EntityTarget |
field_215940_d |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ITextComponent |
name |
conditions
Modifier | Constructor and Description |
---|---|
private |
SetName(ILootCondition[] p_i51218_1_,
ITextComponent p_i51218_2_,
LootContext.EntityTarget p_i51218_3_) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
doApply(ItemStack stack,
LootContext context) |
static java.util.function.UnaryOperator<ITextComponent> |
func_215936_a(LootContext p_215936_0_,
LootContext.EntityTarget p_215936_1_) |
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 static final org.apache.logging.log4j.Logger LOGGER
private final ITextComponent name
@Nullable private final LootContext.EntityTarget field_215940_d
private SetName(ILootCondition[] p_i51218_1_, @Nullable ITextComponent p_i51218_2_, @Nullable LootContext.EntityTarget p_i51218_3_)
public java.util.Set<LootParameter<?>> getRequiredParameters()
public static java.util.function.UnaryOperator<ITextComponent> func_215936_a(LootContext p_215936_0_, @Nullable LootContext.EntityTarget p_215936_1_)
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction