Package net.minecraft.loot.function
Class CopyNbtLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.CopyNbtLootFunction
- All Implemented Interfaces:
- BiFunction<ItemStack,,- LootContext, - ItemStack> - LootContextAware,- LootFunction
- Mappings:
- Namespace - Name - named - net/minecraft/loot/function/CopyNbtLootFunction- intermediary - net/minecraft/class_3837- official - ewt
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classprivate static final recordstatic enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CopyNbtLootFunction> private final List<CopyNbtLootFunction.Operation> private final LootNbtProviderFields inherited from class net.minecraft.loot.function.ConditionalLootFunctionconditions
- 
Constructor SummaryConstructorsConstructorDescriptionCopyNbtLootFunction(List<LootCondition> conditions, LootNbtProvider source, List<CopyNbtLootFunction.Operation> operations) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic CopyNbtLootFunction.Builderbuilder(LootContext.EntityTarget target) static CopyNbtLootFunction.Builderbuilder(LootNbtProvider source) Deprecated.Set<ContextParameter<?>> getType()process(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunctionaddConditionsField, apply, builder, 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- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/function/CopyNbtLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45819- Lnet/minecraft/class_3837;field_45819:Lcom/mojang/serialization/MapCodec;- official - a- Lewt;a:Lcom/mojang/serialization/MapCodec;
 
- 
source- Mappings:
- Namespace - Name - Mixin selector - named - source- Lnet/minecraft/loot/function/CopyNbtLootFunction;source:Lnet/minecraft/loot/provider/nbt/LootNbtProvider;- intermediary - field_17013- Lnet/minecraft/class_3837;field_17013:Lnet/minecraft/class_5651;- official - b- Lewt;b:Lezp;
 
- 
operations- Mappings:
- Namespace - Name - Mixin selector - named - operations- Lnet/minecraft/loot/function/CopyNbtLootFunction;operations:Ljava/util/List;- intermediary - field_17014- Lnet/minecraft/class_3837;field_17014:Ljava/util/List;- official - c- Lewt;c:Ljava/util/List;
 
 
- 
- 
Constructor Details- 
CopyNbtLootFunctionCopyNbtLootFunction(List<LootCondition> conditions, LootNbtProvider source, List<CopyNbtLootFunction.Operation> operations) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/loot/function/CopyNbtLootFunction;<init>(Ljava/util/List;Lnet/minecraft/loot/provider/nbt/LootNbtProvider;Ljava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_3837;<init>(Ljava/util/List;Lnet/minecraft/class_5651;Ljava/util/List;)V- official - <init>- Lewt;<init>(Ljava/util/List;Lezp;Ljava/util/List;)V
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- LootFunction
- Specified by:
- getTypein class- ConditionalLootFunction
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;- intermediary - method_29321- Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;- official - b- Lexg;b()Lexh;
 
- 
getAllowedParameters- Mappings:
- Namespace - Name - Mixin selector - named - getAllowedParameters- Lnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;- intermediary - method_293- Lnet/minecraft/class_46;method_293()Ljava/util/Set;- official - a- Levt;a()Ljava/util/Set;
 
- 
process- Specified by:
- processin class- ConditionalLootFunction
- Mappings:
- Namespace - Name - Mixin selector - named - process- Lnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;- intermediary - method_522- Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;- official - a- Lexf;a(Lcwq;Levs;)Lcwq;
 
- 
builderDeprecated.- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/loot/function/CopyNbtLootFunction;builder(Lnet/minecraft/loot/provider/nbt/LootNbtProvider;)Lnet/minecraft/loot/function/CopyNbtLootFunction$Builder;- intermediary - method_16848- Lnet/minecraft/class_3837;method_16848(Lnet/minecraft/class_5651;)Lnet/minecraft/class_3837$class_3838;- official - a- Lewt;a(Lezp;)Lewt$a;
 
- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/loot/function/CopyNbtLootFunction;builder(Lnet/minecraft/loot/context/LootContext$EntityTarget;)Lnet/minecraft/loot/function/CopyNbtLootFunction$Builder;- intermediary - method_35519- Lnet/minecraft/class_3837;method_35519(Lnet/minecraft/class_47$class_50;)Lnet/minecraft/class_3837$class_3838;- official - a- Lewt;a(Levs$b;)Lewt$a;
 
 
-