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
Modifier and TypeClassDescriptionstatic class
(package private) static class
static enum
static class
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescription(package private) final List<CopyNbtFunction.CopyOperation>
(package private) final NbtProvider
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionCopyNbtFunction
(LootItemCondition[] p_165175_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_165177_) -
Method Summary
Modifier and TypeMethodDescription(package private) static NbtPathArgument.NbtPath
compileNbtPath
(String p_80268_) static CopyNbtFunction.Builder
copyData
(LootContext.EntityTarget p_165179_) static CopyNbtFunction.Builder
copyData
(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, 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
-
-
Constructor Details
-
CopyNbtFunction
CopyNbtFunction(LootItemCondition[] p_165175_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_165177_)
-
-
Method Details
-
getType
-
compileNbtPath
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
copyData
-
copyData
-