Class CopyNbtFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.CopyNbtFunction
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> LootItemFunction,LootContextUser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static classstatic enumstatic classNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final List<CopyNbtFunction.CopyOperation>(package private) final NbtProviderFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates -
Constructor Summary
ConstructorsConstructorDescriptionCopyNbtFunction(LootItemCondition[] p_165175_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_165177_) -
Method Summary
Modifier and TypeMethodDescription(package private) static NbtPathArgument.NbtPathcompileNbtPath(String p_80268_) static CopyNbtFunction.BuildercopyData(LootContext.EntityTarget p_165179_) static CopyNbtFunction.BuildercopyData(NbtProvider p_165181_) Set<LootContextParam<?>>getType()run(ItemStack p_80250_, LootContext p_80251_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
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
-
-
Constructor Details
-
CopyNbtFunction
CopyNbtFunction(LootItemCondition[] p_165175_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_165177_)
-
-
Method Details
-
getType
-
compileNbtPath
-
getReferencedContextParams
-
run
- Specified by:
runin classLootItemConditionalFunction
-
copyData
-
copyData
-