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, Validatable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final MapCodec<SetBannerPatternFunction> private final BannerPatternLayersFields inherited from class LootItemConditionalFunction
predicates -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSetBannerPatternFunction(List<LootItemCondition> predicates, BannerPatternLayers patterns, boolean append) -
Method Summary
Modifier and TypeMethodDescriptioncodec()protected ItemStackrun(ItemStack itemStack, LootContext context) setBannerPattern(boolean append) Methods inherited from class LootItemConditionalFunction
apply, commonFields, simpleBuilder, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThenMethods inherited from interface LootContextUser
getReferencedContextParams
-
Field Details
-
MAP_CODEC
-
patterns
-
append
private final boolean append
-
-
Constructor Details
-
SetBannerPatternFunction
private SetBannerPatternFunction(List<LootItemCondition> predicates, BannerPatternLayers patterns, boolean append)
-
-
Method Details
-
run
- Specified by:
runin classLootItemConditionalFunction
-
codec
- Specified by:
codecin interfaceLootItemFunction- Specified by:
codecin classLootItemConditionalFunction
-
setBannerPattern
-