Interface LootItemFunction
- All Superinterfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextUser
- All Known Implementing Classes:
ApplyBonusCount
,ApplyExplosionDecay
,CopyBlockState
,CopyComponentsFunction
,CopyCustomDataFunction
,CopyNameFunction
,EnchantedCountIncreaseFunction
,EnchantRandomlyFunction
,EnchantWithLevelsFunction
,ExplorationMapFunction
,FillPlayerHead
,FilteredFunction
,FunctionReference
,LimitCount
,LootItemConditionalFunction
,ModifyContainerContents
,SequenceFunction
,SetAttributesFunction
,SetBannerPatternFunction
,SetBookCoverFunction
,SetComponentsFunction
,SetContainerContents
,SetContainerLootTable
,SetCustomDataFunction
,SetCustomModelDataFunction
,SetEnchantmentsFunction
,SetFireworkExplosionFunction
,SetFireworksFunction
,SetInstrumentFunction
,SetItemCountFunction
,SetItemDamageFunction
,SetItemFunction
,SetLoreFunction
,SetNameFunction
,SetOminousBottleAmplifierFunction
,SetPotionFunction
,SetStewEffectFunction
,SetWritableBookPagesFunction
,SetWrittenBookPagesFunction
,SmeltItemFunction
,ToggleTooltips
public interface LootItemFunction
extends LootContextUser, BiFunction<ItemStack,LootContext,ItemStack>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) LootItemFunctionType
<? extends LootItemFunction> getType()
Methods inherited from interface java.util.function.BiFunction
andThen, apply
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Method Details
-
getType
LootItemFunctionType<? extends LootItemFunction> getType() -
decorate
static Consumer<ItemStack> decorate(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_)
-