Package org.spongepowered.api.data.meta
Interface BannerPatternLayer
-
- All Superinterfaces:
DataSerializable
public interface BannerPatternLayer extends DataSerializable
A representation on a single layer of aBanner
's pattern.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BannerPatternLayer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description DyeColor
color()
Gets the color for this layer.static BannerPatternLayer
of(Supplier<? extends BannerPatternShape> shape, DyeColor color)
static BannerPatternLayer
of(Supplier<? extends BannerPatternShape> shape, DefaultedRegistryReference<? extends DyeColor> color)
static BannerPatternLayer
of(BannerPatternShape shape, DyeColor color)
static BannerPatternLayer
of(BannerPatternShape shape, DefaultedRegistryReference<? extends DyeColor> color)
BannerPatternShape
shape()
Gets the pattern shape for this layer.-
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
-
-
-
Method Detail
-
of
static BannerPatternLayer of(Supplier<? extends BannerPatternShape> shape, DefaultedRegistryReference<? extends DyeColor> color)
- Parameters:
shape
- The shapecolor
- The color- Returns:
- The new pattern layer
-
of
static BannerPatternLayer of(Supplier<? extends BannerPatternShape> shape, DyeColor color)
- Parameters:
shape
- The shapecolor
- The color- Returns:
- The new pattern layer
-
of
static BannerPatternLayer of(BannerPatternShape shape, DefaultedRegistryReference<? extends DyeColor> color)
- Parameters:
shape
- The shapecolor
- The color- Returns:
- The new pattern layer
-
of
static BannerPatternLayer of(BannerPatternShape shape, DyeColor color)
- Parameters:
shape
- The shapecolor
- The color- Returns:
- The new pattern layer
-
shape
BannerPatternShape shape()
Gets the pattern shape for this layer.- Returns:
- The shape
-
color
DyeColor color()
Gets the color for this layer.- Returns:
- The color
-
-