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 SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanstatic 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.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsConstructorDescriptionSetBannerPatternFunction(List<LootItemCondition> p_165276_, List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>> p_298427_, boolean p_165277_) 
- 
Method SummaryModifier 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.LootItemConditionalFunctionapply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThenMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUsergetReferencedContextParams
- 
Field Details- 
PATTERN_CODECprivate static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,DyeColor>> PATTERN_CODEC
- 
CODEC
- 
patterns
- 
appendprivate final boolean append
 
- 
- 
Constructor Details- 
SetBannerPatternFunctionSetBannerPatternFunction(List<LootItemCondition> p_165276_, List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>> p_298427_, boolean p_165277_) 
 
- 
- 
Method Details- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
getType
- 
setBannerPattern
 
-