Package org.spongepowered.api.data.meta
Interface BannerPatternLayer
- All Superinterfaces:
DataSerializable
A representation on a single layer of a
Banner
's pattern.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptioncolor()
Gets the color for this layer.static BannerPatternLayer
of
(BannerPatternShape shape, DyeColor color) static BannerPatternLayer
of
(BannerPatternShape shape, DefaultedRegistryReference<? extends DyeColor> color) static BannerPatternLayer
of
(DefaultedRegistryReference<? extends BannerPatternShape> shape, DyeColor color) static BannerPatternLayer
of
(DefaultedRegistryReference<? extends BannerPatternShape> shape, DefaultedRegistryReference<? extends DyeColor> color) shape()
Gets the pattern shape for this layer.Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
of
static BannerPatternLayer of(DefaultedRegistryReference<? extends BannerPatternShape> shape, DefaultedRegistryReference<? extends DyeColor> color) - Parameters:
shape
- The shapecolor
- The color- Returns:
- The new pattern layer
-
of
static BannerPatternLayer of(DefaultedRegistryReference<? 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
- 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
-