public class CopyNbt extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
CopyNbt.Action |
static class |
CopyNbt.Builder |
(package private) static class |
CopyNbt.Operation |
static class |
CopyNbt.Serializer |
static class |
CopyNbt.Source |
ILootFunction.IBuilder
Modifier and Type | Field and Description |
---|---|
private CopyNbt.Source |
field_215887_a |
private java.util.List<CopyNbt.Operation> |
field_215888_c |
private static java.util.function.Function<Entity,INBT> |
field_215889_d |
private static java.util.function.Function<TileEntity,INBT> |
field_215890_e |
conditions
Modifier | Constructor and Description |
---|---|
private |
CopyNbt(ILootCondition[] p_i51240_1_,
CopyNbt.Source p_i51240_2_,
java.util.List<CopyNbt.Operation> p_i51240_3_) |
Modifier and Type | Method and Description |
---|---|
static CopyNbt.Builder |
builder(CopyNbt.Source source) |
ItemStack |
doApply(ItemStack stack,
LootContext context) |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
private static NBTPathArgument.NBTPath |
parsePath(java.lang.String p_215880_0_) |
apply, builder, func_225580_a_
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215858_a
private final CopyNbt.Source field_215887_a
private final java.util.List<CopyNbt.Operation> field_215888_c
private static final java.util.function.Function<TileEntity,INBT> field_215890_e
private CopyNbt(ILootCondition[] p_i51240_1_, CopyNbt.Source p_i51240_2_, java.util.List<CopyNbt.Operation> p_i51240_3_)
private static NBTPathArgument.NBTPath parsePath(java.lang.String p_215880_0_)
public java.util.Set<LootParameter<?>> getRequiredParameters()
public ItemStack doApply(ItemStack stack, LootContext context)
doApply
in class LootFunction
public static CopyNbt.Builder builder(CopyNbt.Source source)