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 ese
  • 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 Lese;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 Lese;b:Ldpa;
    • 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 Lese;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> Lese;<init>(Ljava/util/List;Ldpa;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 Lerw;a(Lcur;Leqk;)Lcur;
    • 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 Lerx;b()Lery;
    • 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 Lese;a(Z)Lese$a;