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/SetLoreLootFunctionintermediary net/minecraft/class_3671official eya
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SetLoreLootFunction> private final Optional<LootContext.EntityTarget> private final ListOperationFields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions - 
Constructor Summary
ConstructorsConstructorDescriptionSetLoreLootFunction(List<LootCondition> conditions, List<Text> lore, ListOperation operation, Optional<LootContext.EntityTarget> entity)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic SetLoreLootFunction.Builderbuilder()Set<ContextParameter<?>> getNewLoreTexts(@Nullable LoreComponent current, LootContext context) getType()process(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
addConditionsField, apply, builder, 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
- 
CODEC
- Mappings:
 Namespace Name Mixin selector named CODECLnet/minecraft/loot/function/SetLoreLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_45847Lnet/minecraft/class_3671;field_45847:Lcom/mojang/serialization/MapCodec;official aLeya;a:Lcom/mojang/serialization/MapCodec;
 - 
lore
- Mappings:
 Namespace Name Mixin selector named loreLnet/minecraft/loot/function/SetLoreLootFunction;lore:Ljava/util/List;intermediary field_16231Lnet/minecraft/class_3671;field_16231:Ljava/util/List;official bLeya;b:Ljava/util/List;
 - 
operation
- Mappings:
 Namespace Name Mixin selector named operationLnet/minecraft/loot/function/SetLoreLootFunction;operation:Lnet/minecraft/util/collection/ListOperation;intermediary field_50024Lnet/minecraft/class_3671;field_50024:Lnet/minecraft/class_9368;official cLeya;c:Lexe;
 - 
entity
- Mappings:
 Namespace Name Mixin selector named entityLnet/minecraft/loot/function/SetLoreLootFunction;entity:Ljava/util/Optional;intermediary field_16233Lnet/minecraft/class_3671;field_16233:Ljava/util/Optional;official dLeya;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;)Vintermediary <init>Lnet/minecraft/class_3671;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_9368;Ljava/util/Optional;)Vofficial <init>Leya;<init>(Ljava/util/List;Ljava/util/List;Lexe;Ljava/util/Optional;)V
 
 - 
 - 
Method Details
- 
getType
- Specified by:
 getTypein interfaceLootFunction- Specified by:
 getTypein classConditionalLootFunction- Mappings:
 Namespace Name Mixin selector named getTypeLnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;intermediary method_29321Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;official bLexg;b()Lexh;
 - 
getAllowedParameters
- Mappings:
 Namespace Name Mixin selector named getAllowedParametersLnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;intermediary method_293Lnet/minecraft/class_46;method_293()Ljava/util/Set;official aLevt;a()Ljava/util/Set;
 - 
process
- Specified by:
 processin classConditionalLootFunction- Mappings:
 Namespace Name Mixin selector named processLnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;intermediary method_522Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;official aLexf;a(Lcwq;Levs;)Lcwq;
 - 
getNewLoreTexts
- Mappings:
 Namespace Name Mixin selector named getNewLoreTextsLnet/minecraft/loot/function/SetLoreLootFunction;getNewLoreTexts(Lnet/minecraft/component/type/LoreComponent;Lnet/minecraft/loot/context/LootContext;)Ljava/util/List;intermediary method_57658Lnet/minecraft/class_3671;method_57658(Lnet/minecraft/class_9290;Lnet/minecraft/class_47;)Ljava/util/List;official aLeya;a(Lczj;Levs;)Ljava/util/List;
 - 
builder
- Mappings:
 Namespace Name Mixin selector named builderLnet/minecraft/loot/function/SetLoreLootFunction;builder()Lnet/minecraft/loot/function/SetLoreLootFunction$Builder;intermediary method_35544Lnet/minecraft/class_3671;method_35544()Lnet/minecraft/class_3671$class_6159;official cLeya;c()Leya$a;
 
 -