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 classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
static final com.mojang.serialization.Codec<SetBannerPatternFunction>
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> private final List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionSetBannerPatternFunction
(List<LootItemCondition> p_165276_, List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>> p_298427_, boolean p_165277_) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
protected ItemStack
run
(ItemStack p_165280_, LootContext p_165281_) setBannerPattern
(boolean p_165283_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validate
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
-
Field Details
-
PATTERN_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,DyeColor>> PATTERN_CODEC -
CODEC
-
patterns
-
append
private final boolean append
-
-
Constructor Details
-
SetBannerPatternFunction
SetBannerPatternFunction(List<LootItemCondition> p_165276_, List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>> p_298427_, boolean p_165277_)
-
-
Method Details
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
getType
-
setBannerPattern
-