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 final record
static enum
(package private) static final record
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyNbtFunction>
private final List<CopyNbtFunction.CopyOperation>
private final NbtProvider
Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionCopyNbtFunction
(List<LootItemCondition> p_165177_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_299800_) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, commonFields, 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
-
CODEC
-
source
-
operations
-
-
Constructor Details
-
CopyNbtFunction
CopyNbtFunction(List<LootItemCondition> p_165177_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_299800_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
copyData
-
copyData
-