public class CopyName extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
CopyName.Serializer |
static class |
CopyName.Source |
LootFunction.Builder<T extends LootFunction.Builder<T>>
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private CopyName.Source |
source |
conditions
Modifier | Constructor and Description |
---|---|
private |
CopyName(ILootCondition[] conditionsIn,
CopyName.Source sourceIn) |
Modifier and Type | Method and Description |
---|---|
static LootFunction.Builder<?> |
builder(CopyName.Source sourceIn) |
ItemStack |
doApply(ItemStack stack,
LootContext context) |
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 CopyName.Source source
private CopyName(ILootCondition[] conditionsIn, CopyName.Source sourceIn)
public java.util.Set<LootParameter<?>> getRequiredParameters()
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction
public static LootFunction.Builder<?> builder(CopyName.Source sourceIn)