Package org.spongepowered.api.data.meta
Interface BannerPatternLayer.Builder
-
- All Superinterfaces:
Buildable.Builder<BannerPatternLayer>
,Builder<BannerPatternLayer,BannerPatternLayer.Builder>
,CopyableBuilder<BannerPatternLayer,BannerPatternLayer.Builder>
,DataBuilder<BannerPatternLayer>
,ResettableBuilder<BannerPatternLayer,BannerPatternLayer.Builder>
- Enclosing interface:
- BannerPatternLayer
public static interface BannerPatternLayer.Builder extends Builder<BannerPatternLayer,BannerPatternLayer.Builder>, CopyableBuilder<BannerPatternLayer,BannerPatternLayer.Builder>, DataBuilder<BannerPatternLayer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BannerPatternLayer
build()
Builds aBannerPatternLayer
provided that the color and pattern are set.default BannerPatternLayer.Builder
color(Supplier<? extends DyeColor> color)
Sets theDyeColor
to be used.BannerPatternLayer.Builder
color(DyeColor color)
Sets theDyeColor
to be used.default BannerPatternLayer.Builder
pattern(Supplier<? extends BannerPatternShape> shape)
Sets theBannerPatternShape
to be used.BannerPatternLayer.Builder
pattern(BannerPatternShape shape)
Sets theBannerPatternShape
to be used.BannerPatternLayer.Builder
reset()
Resets this builder to a "default" state such that there is no remaining data to set.-
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
-
-
-
Method Detail
-
pattern
BannerPatternLayer.Builder pattern(BannerPatternShape shape)
Sets theBannerPatternShape
to be used.- Parameters:
shape
- The shape- Returns:
- This builder, for chaining
-
pattern
default BannerPatternLayer.Builder pattern(Supplier<? extends BannerPatternShape> shape)
Sets theBannerPatternShape
to be used.- Parameters:
shape
- The shape- Returns:
- This builder, for chaining
-
color
BannerPatternLayer.Builder color(DyeColor color)
Sets theDyeColor
to be used.- Parameters:
color
- The color- Returns:
- This builder, for chaining
-
color
default BannerPatternLayer.Builder color(Supplier<? extends DyeColor> color)
Sets theDyeColor
to be used.- Parameters:
color
- The color- Returns:
- This builder, for chaining
-
build
BannerPatternLayer build()
Builds aBannerPatternLayer
provided that the color and pattern are set.- Specified by:
build
in interfaceBuildable.Builder<BannerPatternLayer>
- Returns:
- The new pattern layer
-
reset
BannerPatternLayer.Builder reset()
Description copied from interface:Builder
Resets this builder to a "default" state such that there is no remaining data to set. This is to be the presumed "default" state.- Specified by:
reset
in interfaceBuilder<BannerPatternLayer,BannerPatternLayer.Builder>
- Specified by:
reset
in interfaceResettableBuilder<BannerPatternLayer,BannerPatternLayer.Builder>
- Returns:
- This builder, for chaining
-
-