public class CopyNbtLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
CopyNbtLootFunction.Builder |
(package private) static class |
CopyNbtLootFunction.Operation |
static class |
CopyNbtLootFunction.Operator |
static class |
CopyNbtLootFunction.Serializer |
static class |
CopyNbtLootFunction.Source |
ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private static Function<BlockEntity,Tag> |
BLOCK_ENTITY_TAG_GETTER |
private static Function<Entity,Tag> |
ENTITY_TAG_GETTER |
private List<CopyNbtLootFunction.Operation> |
operations |
private CopyNbtLootFunction.Source |
source |
conditions
Modifier | Constructor and Description |
---|---|
private |
CopyNbtLootFunction(LootCondition[] conditions,
CopyNbtLootFunction.Source source,
List<CopyNbtLootFunction.Operation> operations) |
Modifier and Type | Method and Description |
---|---|
static CopyNbtLootFunction.Builder |
builder(CopyNbtLootFunction.Source source) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootFunctionType |
getType() |
private static NbtPathArgumentType.NbtPath |
parseNbtPath(String nbtPath) |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
andThen
private static final Function<BlockEntity,Tag> BLOCK_ENTITY_TAG_GETTER
private final CopyNbtLootFunction.Source source
private final List<CopyNbtLootFunction.Operation> operations
private CopyNbtLootFunction(LootCondition[] conditions, CopyNbtLootFunction.Source source, List<CopyNbtLootFunction.Operation> operations)
public LootFunctionType getType()
private static NbtPathArgumentType.NbtPath parseNbtPath(String nbtPath)
public Set<LootContextParameter<?>> getRequiredParameters()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public static CopyNbtLootFunction.Builder builder(CopyNbtLootFunction.Source source)