Package org.spongepowered.api.data.meta
Interface BannerPatternLayer.Builder
- All Superinterfaces:
AbstractBuilder<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
Modifier and TypeMethodDescriptionbuild()
Builds aBannerPatternLayer
provided that the color and pattern are set.default BannerPatternLayer.Builder
Sets theDyeColor
to be used.Sets theDyeColor
to be used.default BannerPatternLayer.Builder
pattern
(Supplier<? extends BannerPatternShape> shape) Sets theBannerPatternShape
to be used.pattern
(BannerPatternShape shape) Sets theBannerPatternShape
to be used.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 Details
-
pattern
Sets theBannerPatternShape
to be used.- Parameters:
shape
- The shape- Returns:
- This builder, for chaining
-
pattern
Sets theBannerPatternShape
to be used.- Parameters:
shape
- The shape- Returns:
- This builder, for chaining
-
color
Sets theDyeColor
to be used.- Parameters:
color
- The color- Returns:
- This builder, for chaining
-
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 interfaceAbstractBuilder<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
-