Package net.minecraft.loot
Class LootFunction
java.lang.Object
net.minecraft.loot.LootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> ILootFunction,IParameterized
- Direct Known Subclasses:
ApplyBonus,CopyBlockState,CopyName,CopyNbt,EnchantRandomly,EnchantWithLevels,ExplorationMap,ExplosionDecay,FillPlayerHead,LimitCount,LootingEnchantBonus,SetAttributes,SetContents,SetCount,SetDamage,SetLootTable,SetLore,SetName,SetNBT,SetStewEffect,Smelt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLootFunction.Builder<T extends LootFunction.Builder<T>>static classLootFunction.Serializer<T extends LootFunction>(package private) static final classNested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<LootContext>protected final ILootCondition[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ItemStackapply(ItemStack p_apply_1_, LootContext p_apply_2_) protected abstract ItemStackrun(ItemStack p_215859_1_, LootContext p_215859_2_) protected static LootFunction.Builder<?>simpleBuilder(Function<ILootCondition[], ILootFunction> p_215860_0_) voidvalidate(ValidationTracker p_225580_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.minecraft.loot.functions.ILootFunction
getTypeMethods inherited from interface net.minecraft.loot.IParameterized
getReferencedContextParams
-
Field Details
-
predicates
-
compositePredicates
-
-
Constructor Details
-
LootFunction
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<ItemStack,LootContext, ItemStack>
-
run
-
validate
- Specified by:
validatein interfaceIParameterized
-
simpleBuilder
protected static LootFunction.Builder<?> simpleBuilder(Function<ILootCondition[], ILootFunction> p_215860_0_)
-