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 eyw
  • 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 Leyw;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 Leyw;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 Leyw;c:Leya;
    • 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 Leyw;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> Leyw;<init>(Ljava/util/List;Ljava/util/List;Leya;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 Leyc;b()Leyd;
    • getAllowedParameters

      public Set<ContextParameter<?>> getAllowedParameters()
      Mappings:
      Namespace Name Mixin selector
      named getAllowedParameters Lnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;
      intermediary method_293 Lnet/minecraft/class_46;method_293()Ljava/util/Set;
      official a Lewp;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 Leyb;a(Lcxo;Lewo;)Lcxo;
    • 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 Leyw;a(Ldah;Lewo;)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 Leyw;c()Leyw$a;