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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class(package private) static classstatic classstatic enumNested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Function<TileEntity,INBT> private final List<CopyNbt.Operation>private final CopyNbt.SourceFields inherited from class net.minecraft.loot.LootFunction
predicates -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCopyNbt(ILootCondition[] p_i51240_1_, CopyNbt.Source p_i51240_2_, List<CopyNbt.Operation> p_i51240_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NBTPathArgument.NBTPathcompileNbtPath(String p_215880_0_) static CopyNbt.BuildercopyData(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, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
runin classLootFunction
-
copyData
-