Package net.minecraft.loot.function
Class SetLoreLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetLoreLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/SetLoreLootFunction
intermediary net/minecraft/class_3671
official esr
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SetLoreLootFunction> private final Optional
<LootContext.EntityTarget> private final ListOperation
Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ConstructorDescriptionSetLoreLootFunction
(List<LootCondition> conditions, List<Text> lore, ListOperation operation, Optional<LootContext.EntityTarget> entity) -
Method Summary
Modifier and TypeMethodDescriptionstatic SetLoreLootFunction.Builder
builder()
getNewLoreTexts
(@Nullable LoreComponent current, LootContext context) 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
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/function/SetLoreLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_45847
Lnet/minecraft/class_3671;field_45847:Lcom/mojang/serialization/MapCodec;
official a
Lesr;a:Lcom/mojang/serialization/MapCodec;
-
lore
- Mappings:
Namespace Name Mixin selector named lore
Lnet/minecraft/loot/function/SetLoreLootFunction;lore:Ljava/util/List;
intermediary field_16231
Lnet/minecraft/class_3671;field_16231:Ljava/util/List;
official b
Lesr;b:Ljava/util/List;
-
operation
- Mappings:
Namespace Name Mixin selector named operation
Lnet/minecraft/loot/function/SetLoreLootFunction;operation:Lnet/minecraft/util/collection/ListOperation;
intermediary field_50024
Lnet/minecraft/class_3671;field_50024:Lnet/minecraft/class_9368;
official c
Lesr;c:Leru;
-
entity
- Mappings:
Namespace Name Mixin selector named entity
Lnet/minecraft/loot/function/SetLoreLootFunction;entity:Ljava/util/Optional;
intermediary field_16233
Lnet/minecraft/class_3671;field_16233:Ljava/util/Optional;
official d
Lesr;d:Ljava/util/Optional;
-
-
Constructor Details
-
SetLoreLootFunction
public SetLoreLootFunction(List<LootCondition> conditions, List<Text> lore, ListOperation operation, Optional<LootContext.EntityTarget> entity) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/SetLoreLootFunction;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/util/collection/ListOperation;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_3671;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_9368;Ljava/util/Optional;)V
official <init>
Lesr;<init>(Ljava/util/List;Ljava/util/List;Leru;Ljava/util/Optional;)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;
-
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;
-
getNewLoreTexts
- Mappings:
Namespace Name Mixin selector named getNewLoreTexts
Lnet/minecraft/loot/function/SetLoreLootFunction;getNewLoreTexts(Lnet/minecraft/component/type/LoreComponent;Lnet/minecraft/loot/context/LootContext;)Ljava/util/List;
intermediary method_57658
Lnet/minecraft/class_3671;method_57658(Lnet/minecraft/class_9290;Lnet/minecraft/class_47;)Ljava/util/List;
official a
Lesr;a(Lcxn;Leqj;)Ljava/util/List;
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/function/SetLoreLootFunction;builder()Lnet/minecraft/loot/function/SetLoreLootFunction$Builder;
intermediary method_35544
Lnet/minecraft/class_3671;method_35544()Lnet/minecraft/class_3671$class_6159;
official c
Lesr;c()Lesr$a;
-