Interface LootFunction

All Superinterfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootContextAware
All Known Implementing Classes:
AndLootFunction, ApplyBonusLootFunction, ConditionalLootFunction, CopyNameLootFunction, CopyNbtLootFunction, CopyStateFunction, EnchantRandomlyLootFunction, EnchantWithLevelsLootFunction, ExplorationMapLootFunction, ExplosionDecayLootFunction, FillPlayerHeadLootFunction, FurnaceSmeltLootFunction, LimitCountLootFunction, LootingEnchantLootFunction, ReferenceLootFunction, SetAttributesLootFunction, SetBannerPatternFunction, SetContentsLootFunction, SetCountLootFunction, SetDamageLootFunction, SetEnchantmentsLootFunction, SetInstrumentLootFunction, SetLootTableLootFunction, SetLoreLootFunction, SetNameLootFunction, SetNbtLootFunction, SetPotionLootFunction, SetStewEffectLootFunction

public interface LootFunction extends LootContextAware, BiFunction<ItemStack,LootContext,ItemStack>
Mappings:
Namespace Name
official eij
intermediary net/minecraft/class_117
named net/minecraft/loot/function/LootFunction
  • Method Details

    • getType

      LootFunctionType getType()
      Mappings:
      Namespace Name Mixin selector
      official b Leij;b()Leik;
      intermediary method_29321 Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;
      named getType Lnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;
    • apply

      static Consumer<ItemStack> apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Leij;a(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Legw;)Ljava/util/function/Consumer;
      intermediary method_513 Lnet/minecraft/class_117;method_513(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lnet/minecraft/class_47;)Ljava/util/function/Consumer;
      named apply Lnet/minecraft/loot/function/LootFunction;apply(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)Ljava/util/function/Consumer;