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
LootItemFunction that sets the banner patterns for a banner item. Optionally appends to any existing patterns.
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final com.mojang.serialization.MapCodec<SetBannerPatternFunction> private final BannerPatternLayersFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates - 
Constructor Summary
ConstructorsConstructorDescriptionSetBannerPatternFunction(List<LootItemCondition> pConditions, BannerPatternLayers pPatterns, boolean pAppend)  - 
Method Summary
Modifier and TypeMethodDescriptiongetType()protected ItemStackrun(ItemStack p_165280_, LootContext p_165281_) Called to perform the actual action of this function, after conditions have been checked.setBannerPattern(boolean pAppend) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, 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
- 
CODEC
 - 
patterns
 - 
append
private final boolean append 
 - 
 - 
Constructor Details
- 
SetBannerPatternFunction
SetBannerPatternFunction(List<LootItemCondition> pConditions, BannerPatternLayers pPatterns, boolean pAppend)  
 - 
 - 
Method Details
- 
run
Description copied from class:LootItemConditionalFunctionCalled to perform the actual action of this function, after conditions have been checked.- Specified by:
 runin classLootItemConditionalFunction
 - 
getType
- Specified by:
 getTypein interfaceLootItemFunction- Specified by:
 getTypein classLootItemConditionalFunction
 - 
setBannerPattern
 
 -