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 SummaryNested ClassesModifier and TypeClassDescriptionstatic class(package private) static final recordstatic enum(package private) static final recordNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyNbtFunction>private final List<CopyNbtFunction.CopyOperation>private final NbtProviderFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionCopyNbtFunction(List<LootItemCondition> p_165177_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_298837_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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.LootItemConditionalFunctionapply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThen
- 
Field Details- 
CODEC
- 
source
- 
operations
 
- 
- 
Constructor Details- 
CopyNbtFunctionCopyNbtFunction(List<LootItemCondition> p_165177_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_298837_) 
 
- 
- 
Method Details- 
getType
- 
getReferencedContextParams
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
copyData
- 
copyData
 
-