Class SetLoreLootFunction

java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetLoreLootFunction
All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootContextAware, LootFunction

public class SetLoreLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetLoreLootFunction
intermediary net/minecraft/class_3671
official ess
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetLoreLootFunction> 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 Less;a:Lcom/mojang/serialization/MapCodec;
    • lore

      private final List<Text> 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 Less;b:Ljava/util/List;
    • operation

      private final ListOperation 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 Less;c:Lerv;
    • entity

      private final Optional<LootContext.EntityTarget> 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 Less;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> Less;<init>(Ljava/util/List;Ljava/util/List;Lerv;Ljava/util/Optional;)V
  • Method Details

    • getType

      Specified by:
      getType in interface LootFunction
      Specified by:
      getType in class ConditionalLootFunction
      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 Lerx;b()Lery;
    • getRequiredParameters

      public Set<LootContextParameter<?>> 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 Leql;a()Ljava/util/Set;
    • process

      public ItemStack process(ItemStack stack, LootContext context)
      Specified by:
      process in class ConditionalLootFunction
      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 Lerw;a(Lcur;Leqk;)Lcur;
    • getNewLoreTexts

      private List<Text> getNewLoreTexts(@Nullable @Nullable LoreComponent current, LootContext context)
      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 Less;a(Lcxo;Leqk;)Ljava/util/List;
    • builder

      public static SetLoreLootFunction.Builder 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 Less;c()Less$a;