Package net.minecraft.loot.functions
Class CopyName
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.CopyName
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> ILootFunction,IParameterized
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.loot.LootFunction
LootFunction.Builder<T extends LootFunction.Builder<T>>Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder -
Field Summary
FieldsFields inherited from class net.minecraft.loot.LootFunction
predicates -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCopyName(ILootCondition[] p_i51242_1_, CopyName.Source p_i51242_2_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootFunction.Builder<?>copyName(CopyName.Source p_215893_0_) Set<LootParameter<?>>getType()run(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
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
-
-
Constructor Details
-
CopyName
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
runin classLootFunction
-
copyName
-