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 eyi
  • 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 Leyi;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 Leyi;b:Ldun;
    • 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 Leyi;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> Leyi;<init>(Ljava/util/List;Ldun;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 Leyb;a(Lcxo;Lewo;)Lcxo;
    • 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;
    • 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 Leyi;a(Z)Leyi$a;