Class SetBannerPatternFunction.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<SetBannerPatternFunction.Builder>
net.minecraft.world.level.storage.loot.functions.SetBannerPatternFunction.Builder
- All Implemented Interfaces:
LootItemFunction.Builder
,ConditionUserBuilder<SetBannerPatternFunction.Builder>
- Enclosing class:
- SetBannerPatternFunction
public static class SetBannerPatternFunction.Builder
extends LootItemConditionalFunction.Builder<SetBannerPatternFunction.Builder>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final com.google.common.collect.ImmutableList.Builder<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPattern
(Holder<BannerPattern> p_230999_, DyeColor p_231000_) addPattern
(ResourceKey<BannerPattern> p_230996_, DyeColor p_230997_) build()
protected SetBannerPatternFunction.Builder
getThis()
Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder
getConditions, unwrap, when
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.predicates.ConditionUserBuilder
when
-
Field Details
-
patterns
private final com.google.common.collect.ImmutableList.Builder<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,DyeColor>> patterns -
append
private final boolean append
-
-
Constructor Details
-
Builder
Builder(boolean p_165287_)
-
-
Method Details
-
getThis
- Specified by:
getThis
in classLootItemConditionalFunction.Builder<SetBannerPatternFunction.Builder>
-
build
-
addPattern
public SetBannerPatternFunction.Builder addPattern(ResourceKey<BannerPattern> p_230996_, DyeColor p_230997_) -
addPattern
public SetBannerPatternFunction.Builder addPattern(Holder<BannerPattern> p_230999_, DyeColor p_231000_)
-