Class SetBannerPatternFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetBannerPatternFunction
- All Implemented Interfaces:
BiFunction<ItemStack,,LootContext, ItemStack> LootItemFunction,LootContextUser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) final List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates -
Constructor Summary
ConstructorsConstructorDescriptionSetBannerPatternFunction(LootItemCondition[] p_165275_, List<com.mojang.datafixers.util.Pair<BannerPattern, DyeColor>> p_165276_, boolean p_165277_) -
Method Summary
Modifier and TypeMethodDescriptiongetType()protected ItemStackrun(ItemStack p_165280_, LootContext p_165281_) setBannerPattern(boolean p_165283_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, simpleBuilder, validateMethods 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.world.level.storage.loot.LootContextUser
getReferencedContextParams
-
Field Details
-
patterns
-
append
final boolean append
-
-
Constructor Details
-
SetBannerPatternFunction
SetBannerPatternFunction(LootItemCondition[] p_165275_, List<com.mojang.datafixers.util.Pair<BannerPattern, DyeColor>> p_165276_, boolean p_165277_)
-
-
Method Details
-
run
- Specified by:
runin classLootItemConditionalFunction
-
getType
-
setBannerPattern
-