Package net.minecraft.loot.functions
Class CopyName
- java.lang.Object
-
- net.minecraft.loot.LootFunction
-
- net.minecraft.loot.functions.CopyName
-
- All Implemented Interfaces:
java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
,ILootFunction
,IParameterized
public class CopyName extends LootFunction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CopyName.Serializer
static class
CopyName.Source
-
Nested 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
Fields Modifier and Type Field Description private CopyName.Source
source
-
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CopyName(ILootCondition[] p_i51242_1_, CopyName.Source p_i51242_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LootFunction.Builder<?>
copyName(CopyName.Source p_215893_0_)
java.util.Set<LootParameter<?>>
getReferencedContextParams()
LootFunctionType
getType()
ItemStack
run(ItemStack p_215859_1_, LootContext p_215859_2_)
-
Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder, validate
-
-
-
-
Field Detail
-
source
private final CopyName.Source source
-
-
Constructor Detail
-
CopyName
private CopyName(ILootCondition[] p_i51242_1_, CopyName.Source p_i51242_2_)
-
-
Method Detail
-
getType
public LootFunctionType getType()
-
getReferencedContextParams
public java.util.Set<LootParameter<?>> getReferencedContextParams()
-
run
public ItemStack run(ItemStack p_215859_1_, LootContext p_215859_2_)
- Specified by:
run
in classLootFunction
-
copyName
public static LootFunction.Builder<?> copyName(CopyName.Source p_215893_0_)
-
-