Class SetBannerPatternLootFunction

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

public class SetBannerPatternLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetBannerPatternLootFunction
intermediary net/minecraft/class_5592
official esq
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetBannerPatternLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetBannerPatternLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_45839 Lnet/minecraft/class_5592;field_45839:Lcom/mojang/serialization/MapCodec;
      official a Lesq;a:Lcom/mojang/serialization/MapCodec;
    • patterns

      private final BannerPatternsComponent patterns
      Mappings:
      Namespace Name Mixin selector
      named patterns Lnet/minecraft/loot/function/SetBannerPatternLootFunction;patterns:Lnet/minecraft/component/type/BannerPatternsComponent;
      intermediary field_27343 Lnet/minecraft/class_5592;field_27343:Lnet/minecraft/class_9307;
      official b Lesq;b:Ldph;
    • append

      private final boolean append
      Mappings:
      Namespace Name Mixin selector
      named append Lnet/minecraft/loot/function/SetBannerPatternLootFunction;append:Z
      intermediary field_27344 Lnet/minecraft/class_5592;field_27344:Z
      official c Lesq;c:Z
  • Constructor Details

    • SetBannerPatternLootFunction

      SetBannerPatternLootFunction(List<LootCondition> conditions, BannerPatternsComponent patterns, boolean append)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetBannerPatternLootFunction;<init>(Ljava/util/List;Lnet/minecraft/component/type/BannerPatternsComponent;Z)V
      intermediary <init> Lnet/minecraft/class_5592;<init>(Ljava/util/List;Lnet/minecraft/class_9307;Z)V
      official <init> Lesq;<init>(Ljava/util/List;Ldph;Z)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 Lesj;a(Lcud;Leqw;)Lcud;
    • 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 Lesk;b()Lesl;
    • builder

      public static SetBannerPatternLootFunction.Builder builder(boolean append)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/function/SetBannerPatternLootFunction;builder(Z)Lnet/minecraft/loot/function/SetBannerPatternLootFunction$Builder;
      intermediary method_35531 Lnet/minecraft/class_5592;method_35531(Z)Lnet/minecraft/class_5592$class_6157;
      official a Lesq;a(Z)Lesq$a;