public class CopyNameLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
CopyNameLootFunction.Serializer |
static class |
CopyNameLootFunction.Source |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private CopyNameLootFunction.Source |
source |
conditions
Modifier | Constructor and Description |
---|---|
private |
CopyNameLootFunction(LootCondition[] conditions,
CopyNameLootFunction.Source source) |
Modifier and Type | Method and Description |
---|---|
static ConditionalLootFunction.Builder<?> |
builder(CopyNameLootFunction.Source source) |
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 CopyNameLootFunction.Source source
private CopyNameLootFunction(LootCondition[] conditions, CopyNameLootFunction.Source source)
public LootFunctionType getType()
public Set<LootContextParameter<?>> getRequiredParameters()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static ConditionalLootFunction.Builder<?> builder(CopyNameLootFunction.Source source)