Package net.minecraft.loot.functions
Class SetContents
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.SetContents
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> ILootFunction,IParameterized
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder -
Field Summary
FieldsFields inherited from class net.minecraft.loot.LootFunction
predicates -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSetContents(ILootCondition[] p_i51226_1_, List<LootEntry> p_i51226_2_) -
Method Summary
Modifier and TypeMethodDescriptiongetType()run(ItemStack p_215859_1_, LootContext p_215859_2_) static SetContents.Buildervoidvalidate(ValidationTracker p_225580_1_) Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilderMethods 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.IParameterized
getReferencedContextParams
-
Field Details
-
entries
-
-
Constructor Details
-
SetContents
-
-
Method Details
-
getType
-
run
- Specified by:
runin classLootFunction
-
validate
- Specified by:
validatein interfaceIParameterized- Overrides:
validatein classLootFunction
-
setContents
-