Package net.minecraft.loot.function
Class SetNameLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetNameLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/SetNameLootFunction
intermediary net/minecraft/class_3670
official ess
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SetNameLootFunction> private final Optional
<LootContext.EntityTarget> private static final Logger
private final SetNameLootFunction.Target
Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ModifierConstructorDescriptionprivate
SetNameLootFunction
(List<LootCondition> conditions, Optional<Text> name, Optional<LootContext.EntityTarget> entity, SetNameLootFunction.Target target) -
Method Summary
Modifier and TypeMethodDescriptionstatic UnaryOperator
<Text> applySourceEntity
(LootContext context, LootContext.EntityTarget sourceEntity) static ConditionalLootFunction.Builder
<?> builder
(Text name, SetNameLootFunction.Target target) static ConditionalLootFunction.Builder
<?> builder
(Text name, SetNameLootFunction.Target target, LootContext.EntityTarget entity) getType()
process
(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
addConditionsField, apply, builder, 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
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/loot/function/SetNameLootFunction;LOGGER:Lorg/slf4j/Logger;
intermediary field_16230
Lnet/minecraft/class_3670;field_16230:Lorg/slf4j/Logger;
official b
Less;b:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/SetNameLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_45848
Lnet/minecraft/class_3670;field_45848:Lcom/mojang/serialization/MapCodec;
official a
Less;a:Lcom/mojang/serialization/MapCodec;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/loot/function/SetNameLootFunction;name:Ljava/util/Optional;
intermediary field_16228
Lnet/minecraft/class_3670;field_16228:Ljava/util/Optional;
official c
Less;c:Ljava/util/Optional;
-
entity
- Mappings:
Namespace Name Mixin selector named entity
Lnet/minecraft/loot/function/SetNameLootFunction;entity:Ljava/util/Optional;
intermediary field_16229
Lnet/minecraft/class_3670;field_16229:Ljava/util/Optional;
official d
Less;d:Ljava/util/Optional;
-
target
- Mappings:
Namespace Name Mixin selector named target
Lnet/minecraft/loot/function/SetNameLootFunction;target:Lnet/minecraft/loot/function/SetNameLootFunction$Target;
intermediary field_50208
Lnet/minecraft/class_3670;field_50208:Lnet/minecraft/class_3670$class_9475;
official e
Less;e:Less$a;
-
-
Constructor Details
-
SetNameLootFunction
private SetNameLootFunction(List<LootCondition> conditions, Optional<Text> name, Optional<LootContext.EntityTarget> entity, SetNameLootFunction.Target target) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/SetNameLootFunction;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/loot/function/SetNameLootFunction$Target;)V
intermediary <init>
Lnet/minecraft/class_3670;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_3670$class_9475;)V
official <init>
Less;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Less$a;)V
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootFunction
- Specified by:
getType
in classConditionalLootFunction
- 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
Lerw;b()Lerx;
-
getRequiredParameters
- Mappings:
Namespace Name Mixin selector named getRequiredParameters
Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
intermediary method_293
Lnet/minecraft/class_46;method_293()Ljava/util/Set;
official a
Leqk;a()Ljava/util/Set;
-
applySourceEntity
public static UnaryOperator<Text> applySourceEntity(LootContext context, @Nullable LootContext.EntityTarget sourceEntity) - Mappings:
Namespace Name Mixin selector named applySourceEntity
Lnet/minecraft/loot/function/SetNameLootFunction;applySourceEntity(Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/loot/context/LootContext$EntityTarget;)Ljava/util/function/UnaryOperator;
intermediary method_16190
Lnet/minecraft/class_3670;method_16190(Lnet/minecraft/class_47;Lnet/minecraft/class_47$class_50;)Ljava/util/function/UnaryOperator;
official a
Less;a(Leqj;Leqj$b;)Ljava/util/function/UnaryOperator;
-
process
- Specified by:
process
in classConditionalLootFunction
- 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
Lerv;a(Lcuq;Leqj;)Lcuq;
-
builder
public static ConditionalLootFunction.Builder<?> builder(Text name, SetNameLootFunction.Target target) - Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/function/SetNameLootFunction;builder(Lnet/minecraft/text/Text;Lnet/minecraft/loot/function/SetNameLootFunction$Target;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
intermediary method_35549
Lnet/minecraft/class_3670;method_35549(Lnet/minecraft/class_2561;Lnet/minecraft/class_3670$class_9475;)Lnet/minecraft/class_120$class_121;
official a
Less;a(Lxp;Less$a;)Lerv$a;
-
builder
public static ConditionalLootFunction.Builder<?> builder(Text name, SetNameLootFunction.Target target, LootContext.EntityTarget entity) - Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/function/SetNameLootFunction;builder(Lnet/minecraft/text/Text;Lnet/minecraft/loot/function/SetNameLootFunction$Target;Lnet/minecraft/loot/context/LootContext$EntityTarget;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
intermediary method_35550
Lnet/minecraft/class_3670;method_35550(Lnet/minecraft/class_2561;Lnet/minecraft/class_3670$class_9475;Lnet/minecraft/class_47$class_50;)Lnet/minecraft/class_120$class_121;
official a
Less;a(Lxp;Less$a;Leqj$b;)Lerv$a;
-