Class SetWrittenBookPagesLootFunction

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

public class SetWrittenBookPagesLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetWrittenBookPagesLootFunction
intermediary net/minecraft/class_9378
official euf
  • Field Details

    • TEXT_CODEC

      public static final com.mojang.serialization.Codec<Text> TEXT_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TEXT_CODEC Lnet/minecraft/loot/function/SetWrittenBookPagesLootFunction;TEXT_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_50026 Lnet/minecraft/class_9378;field_50026:Lcom/mojang/serialization/Codec;
      official a Leuf;a:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<SetWrittenBookPagesLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetWrittenBookPagesLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_49889 Lnet/minecraft/class_9378;field_49889:Lcom/mojang/serialization/MapCodec;
      official b Leuf;b:Lcom/mojang/serialization/MapCodec;
    • pages

      private final List<RawFilteredPair<Text>> pages
      Mappings:
      Namespace Name Mixin selector
      named pages Lnet/minecraft/loot/function/SetWrittenBookPagesLootFunction;pages:Ljava/util/List;
      intermediary field_49890 Lnet/minecraft/class_9378;field_49890:Ljava/util/List;
      official c Leuf;c:Ljava/util/List;
    • operation

      private final ListOperation operation
      Mappings:
      Namespace Name Mixin selector
      named operation Lnet/minecraft/loot/function/SetWrittenBookPagesLootFunction;operation:Lnet/minecraft/util/collection/ListOperation;
      intermediary field_49891 Lnet/minecraft/class_9378;field_49891:Lnet/minecraft/class_9368;
      official d Leuf;d:Letd;
  • Constructor Details

    • SetWrittenBookPagesLootFunction

      protected SetWrittenBookPagesLootFunction(List<LootCondition> conditions, List<RawFilteredPair<Text>> pages, ListOperation operation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetWrittenBookPagesLootFunction;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/util/collection/ListOperation;)V
      intermediary <init> Lnet/minecraft/class_9378;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_9368;)V
      official <init> Leuf;<init>(Ljava/util/List;Ljava/util/List;Letd;)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 Lete;a(Lcuq;Lerr;)Lcuq;
    • apply

      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/loot/function/SetWrittenBookPagesLootFunction;apply(Lnet/minecraft/component/type/WrittenBookContentComponent;)Lnet/minecraft/component/type/WrittenBookContentComponent;
      intermediary method_58221 Lnet/minecraft/class_9378;method_58221(Lnet/minecraft/class_9302;)Lnet/minecraft/class_9302;
      official a Leuf;a(Lcyb;)Lcyb;
    • 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 Letf;b()Letg;