Interface LootFunction

All Superinterfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootContextAware
All Known Implementing Classes:
AndLootFunction, ApplyBonusLootFunction, ConditionalLootFunction, CopyComponentsLootFunction, CopyNameLootFunction, CopyNbtLootFunction, CopyStateLootFunction, EnchantedCountIncreaseLootFunction, EnchantRandomlyLootFunction, EnchantWithLevelsLootFunction, ExplorationMapLootFunction, ExplosionDecayLootFunction, FillPlayerHeadLootFunction, FilteredLootFunction, FurnaceSmeltLootFunction, LimitCountLootFunction, ModifyContentsLootFunction, ReferenceLootFunction, SetAttributesLootFunction, SetBannerPatternLootFunction, SetBookCoverLootFunction, SetComponentsLootFunction, SetContentsLootFunction, SetCountLootFunction, SetCustomDataLootFunction, SetCustomModelDataLootFunction, SetDamageLootFunction, SetEnchantmentsLootFunction, SetFireworkExplosionLootFunction, SetFireworksLootFunction, SetInstrumentLootFunction, SetItemLootFunction, SetLootTableLootFunction, SetLoreLootFunction, SetNameLootFunction, SetOminousBottleAmplifierLootFunction, SetPotionLootFunction, SetStewEffectLootFunction, SetWritableBookPagesLootFunction, SetWrittenBookPagesLootFunction, ToggleTooltipsLootFunction

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

    • getType

      LootFunctionType<? extends LootFunction> getType()
      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 Letf;b()Letg;
    • apply

      static Consumer<ItemStack> apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Letf;a(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lerr;)Ljava/util/function/Consumer;