Package net.minecraft.loot.function
Interface LootFunction
- All Superinterfaces:
BiFunction<ItemStack,,LootContext, ItemStack> LootContextAware
- All Known Implementing Classes:
ApplyBonusLootFunction,ConditionalLootFunction,CopyNameLootFunction,CopyNbtLootFunction,CopyStateFunction,EnchantRandomlyLootFunction,EnchantWithLevelsLootFunction,ExplorationMapLootFunction,ExplosionDecayLootFunction,FillPlayerHeadLootFunction,FurnaceSmeltLootFunction,LimitCountLootFunction,LootingEnchantLootFunction,LootManager.AndFunction,ReferenceLootFunction,SetAttributesLootFunction,SetBannerPatternFunction,SetContentsLootFunction,SetCountLootFunction,SetDamageLootFunction,SetEnchantmentsLootFunction,SetInstrumentLootFunction,SetLootTableLootFunction,SetLoreLootFunction,SetNameLootFunction,SetNbtLootFunction,SetPotionLootFunction,SetStewEffectLootFunction
- Mappings:
Namespace Name official eawintermediary net/minecraft/class_117named net/minecraft/loot/function/LootFunction
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionapply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) getType()Methods inherited from interface java.util.function.BiFunction
andThen, applyMethods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters, validate
-
Method Details
-
getType
LootFunctionType getType()- Mappings:
Namespace Name Mixin selector official bLeaw;b()Leax;intermediary method_29321Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;named getTypeLnet/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 aLeaw;a(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Ldzh;)Ljava/util/function/Consumer;intermediary method_513Lnet/minecraft/class_117;method_513(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lnet/minecraft/class_47;)Ljava/util/function/Consumer;named applyLnet/minecraft/loot/function/LootFunction;apply(Ljava/util/function/BiFunction;Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)Ljava/util/function/Consumer;
-