Class SetBookCoverLootFunction

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

public class SetBookCoverLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetBookCoverLootFunction
intermediary net/minecraft/class_9374
official ese
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetBookCoverLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetBookCoverLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_49870 Lnet/minecraft/class_9374;field_49870:Lcom/mojang/serialization/MapCodec;
      official a Lese;a:Lcom/mojang/serialization/MapCodec;
    • author

      private final Optional<String> author
      Mappings:
      Namespace Name Mixin selector
      named author Lnet/minecraft/loot/function/SetBookCoverLootFunction;author:Ljava/util/Optional;
      intermediary field_49871 Lnet/minecraft/class_9374;field_49871:Ljava/util/Optional;
      official b Lese;b:Ljava/util/Optional;
    • title

      private final Optional<RawFilteredPair<String>> title
      Mappings:
      Namespace Name Mixin selector
      named title Lnet/minecraft/loot/function/SetBookCoverLootFunction;title:Ljava/util/Optional;
      intermediary field_49872 Lnet/minecraft/class_9374;field_49872:Ljava/util/Optional;
      official c Lese;c:Ljava/util/Optional;
    • generation

      private final Optional<Integer> generation
      Mappings:
      Namespace Name Mixin selector
      named generation Lnet/minecraft/loot/function/SetBookCoverLootFunction;generation:Ljava/util/Optional;
      intermediary field_49873 Lnet/minecraft/class_9374;field_49873:Ljava/util/Optional;
      official d Lese;d:Ljava/util/Optional;
  • Constructor Details

    • SetBookCoverLootFunction

      public SetBookCoverLootFunction(List<LootCondition> conditions, Optional<RawFilteredPair<String>> title, Optional<String> author, Optional<Integer> generation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetBookCoverLootFunction;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_9374;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      official <init> Lese;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • process

      protected 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 Lerv;a(Lcuq;Leqj;)Lcuq;
    • apply

      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/loot/function/SetBookCoverLootFunction;apply(Lnet/minecraft/component/type/WrittenBookContentComponent;)Lnet/minecraft/component/type/WrittenBookContentComponent;
      intermediary method_58200 Lnet/minecraft/class_9374;method_58200(Lnet/minecraft/class_9302;)Lnet/minecraft/class_9302;
      official a Lese;a(Lcxz;)Lcxz;
    • 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 Lerw;b()Lerx;