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
,LootFunctionManager.AndFunction
,LootingEnchantLootFunction
,SetAttributesLootFunction
,SetBannerPatternFunction
,SetContentsLootFunction
,SetCountLootFunction
,SetDamageLootFunction
,SetEnchantmentsLootFunction
,SetLootTableLootFunction
,SetLoreLootFunction
,SetNameLootFunction
,SetNbtLootFunction
,SetStewEffectLootFunction
public interface LootFunction extends LootContextAware, BiFunction<ItemStack,LootContext,ItemStack>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
LootFunction.Builder
-
Method Summary
Modifier and Type Method Description static Consumer<ItemStack>
apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
LootFunctionType
getType()
Methods inherited from interface java.util.function.BiFunction
andThen, apply
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters, validate
-
Method Details
-
getType
LootFunctionType getType() -
apply
static Consumer<ItemStack> apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
-