Package net.minecraft.loot.functions
Class CopyNbt
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.CopyNbt
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> ILootFunction
,IParameterized
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
(package private) static class
static class
static enum
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Function<TileEntity,
INBT> private final List<CopyNbt.Operation>
private final CopyNbt.Source
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
Constructor Summary
ModifierConstructorDescriptionprivate
CopyNbt
(ILootCondition[] p_i51240_1_, CopyNbt.Source p_i51240_2_, List<CopyNbt.Operation> p_i51240_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NBTPathArgument.NBTPath
compileNbtPath
(String p_215880_0_) static CopyNbt.Builder
copyData
(CopyNbt.Source p_215881_0_) Set<LootParameter<?>>
getType()
run
(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
source
-
operations
-
ENTITY_GETTER
-
BLOCK_ENTITY_GETTER
-
-
Constructor Details
-
CopyNbt
private CopyNbt(ILootCondition[] p_i51240_1_, CopyNbt.Source p_i51240_2_, List<CopyNbt.Operation> p_i51240_3_)
-
-
Method Details
-
getType
-
compileNbtPath
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootFunction
-
copyData
-