Class SetWritableBookPagesLootFunction

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

public class SetWritableBookPagesLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetWritableBookPagesLootFunction
intermediary net/minecraft/class_9377
official ezb
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetWritableBookPagesLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetWritableBookPagesLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_49886 Lnet/minecraft/class_9377;field_49886:Lcom/mojang/serialization/MapCodec;
      official a Lezb;a:Lcom/mojang/serialization/MapCodec;
    • pages

      private final List<RawFilteredPair<String>> pages
      Mappings:
      Namespace Name Mixin selector
      named pages Lnet/minecraft/loot/function/SetWritableBookPagesLootFunction;pages:Ljava/util/List;
      intermediary field_49887 Lnet/minecraft/class_9377;field_49887:Ljava/util/List;
      official b Lezb;b:Ljava/util/List;
    • operation

      private final ListOperation operation
      Mappings:
      Namespace Name Mixin selector
      named operation Lnet/minecraft/loot/function/SetWritableBookPagesLootFunction;operation:Lnet/minecraft/util/collection/ListOperation;
      intermediary field_49888 Lnet/minecraft/class_9377;field_49888:Lnet/minecraft/class_9368;
      official c Lezb;c:Leya;
  • Constructor Details

    • SetWritableBookPagesLootFunction

      protected SetWritableBookPagesLootFunction(List<LootCondition> conditions, List<RawFilteredPair<String>> pages, ListOperation operation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetWritableBookPagesLootFunction;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/util/collection/ListOperation;)V
      intermediary <init> Lnet/minecraft/class_9377;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_9368;)V
      official <init> Lezb;<init>(Ljava/util/List;Ljava/util/List;Leya;)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 Leyb;a(Lcxo;Lewo;)Lcxo;
    • apply

      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/loot/function/SetWritableBookPagesLootFunction;apply(Lnet/minecraft/component/type/WritableBookContentComponent;)Lnet/minecraft/component/type/WritableBookContentComponent;
      intermediary method_58217 Lnet/minecraft/class_9377;method_58217(Lnet/minecraft/class_9301;)Lnet/minecraft/class_9301;
      official a Lezb;a(Ldav;)Ldav;
    • 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;