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 interfaceLootFunction.Builder -
Method Summary
Modifier and Type Method Description static Consumer<ItemStack>apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)LootFunctionTypegetType()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() -
apply
static Consumer<ItemStack> apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
-