Package net.minecraft.loot.functions
Class SetName
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.SetName
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> ILootFunction
,IParameterized
-
Nested Class Summary
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
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private final ITextComponent
private final LootContext.EntityTarget
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
Constructor Summary
ModifierConstructorDescriptionprivate
SetName
(ILootCondition[] p_i51218_1_, ITextComponent p_i51218_2_, LootContext.EntityTarget p_i51218_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic UnaryOperator<ITextComponent>
createResolver
(LootContext p_215936_0_, LootContext.EntityTarget p_215936_1_) Set<LootParameter<?>>
getType()
run
(ItemStack p_215859_1_, LootContext p_215859_2_) Methods inherited from class net.minecraft.loot.LootFunction
apply, 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
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
name
-
resolutionContext
-
-
Constructor Details
-
SetName
private SetName(ILootCondition[] p_i51218_1_, @Nullable ITextComponent p_i51218_2_, @Nullable LootContext.EntityTarget p_i51218_3_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
createResolver
public static UnaryOperator<ITextComponent> createResolver(LootContext p_215936_0_, @Nullable LootContext.EntityTarget p_215936_1_) -
run
- Specified by:
run
in classLootFunction
-