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
,FunctionReference
,LimitCount
,LootingEnchantFunction
,SetAttributesFunction
,SetBannerPatternFunction
,SetContainerContents
,SetContainerLootTable
,SetEnchantmentsFunction
,SetInstrumentFunction
,SetItemCountFunction
,SetItemDamageFunction
,SetLoreFunction
,SetNameFunction
,SetNbtFunction
,SetPotionFunction
,SetStewEffectFunction
,SmeltItemFunction
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static final class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
protected final LootItemCondition[]
-
Constructor Summary
ModifierConstructorDescriptionprotected
LootItemConditionalFunction
(LootItemCondition[] p_80678_) -
Method Summary
Modifier and TypeMethodDescriptionfinal ItemStack
apply
(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_)
-