Class LootItemConditionalFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
- All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>
,LootItemFunction
,LootContextUser
- Direct Known Subclasses:
ApplyBonusCount
,ApplyExplosionDecay
,CopyBlockState
,CopyNameFunction
,CopyNbtFunction
,EnchantRandomlyFunction
,EnchantWithLevelsFunction
,ExplorationMapFunction
,FillPlayerHead
,LimitCount
,LootingEnchantFunction
,SetAttributesFunction
,SetBannerPatternFunction
,SetContainerContents
,SetContainerLootTable
,SetEnchantmentsFunction
,SetItemCountFunction
,SetItemDamageFunction
,SetLoreFunction
,SetNameFunction
,SetNbtFunction
,SetStewEffectFunction
,SmeltItemFunction
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
static class
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
LootItemConditionalFunction(LootItemCondition[] p_80678_)
-
Method Summary
Modifier and TypeMethodDescriptionapply(ItemStack p_80689_, LootContext p_80690_)
protected abstract ItemStack
run(ItemStack p_80679_, LootContext p_80680_)
protected static LootItemConditionalFunction.Builder<?>
simpleBuilder(Function<LootItemCondition[],LootItemFunction> p_80684_)
void
validate(ValidationContext p_80682_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
Methods inherited from interface net.minecraft.world.level.storage.loot.functions.LootItemFunction
getType
-
Field Details
-
predicates
-
compositePredicates
-
-
Constructor Details
-
LootItemConditionalFunction
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<ItemStack,LootContext,ItemStack>
-
run
-
validate
- Specified by:
validate
in interfaceLootContextUser
-
simpleBuilder
protected static LootItemConditionalFunction.Builder<?> simpleBuilder(Function<LootItemCondition[],LootItemFunction> p_80684_)
-