Package org.spongepowered.api.map.color
Interface MapColor
- All Superinterfaces:
DataSerializable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MapColor.Builderbuilder()Creates aMapColor.Builderfor generating a newMapColor.color()static MapColorof(Supplier<MapColorType> mapColorTypeSupplier) A method to ease usingMapColorTypesenumeration.static MapColorof(Supplier<MapColorType> mapColorTypeSupplier, Supplier<MapShade> mapShadeSupplier) A method to ease using theMapColorTypesandMapShade.static MapColorof(MapColorType mapColorType) static MapColorof(MapColorType mapColorType, MapShade mapShade) shade()type()Gets theMapColorTypethat thisMapColorwas built from.Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
builder
Creates aMapColor.Builderfor generating a newMapColor.- Returns:
- The builder
-
of
- Parameters:
mapColorType- TheMapColorType- Returns:
- The
MapColorthat represents the provided type
-
of
A method to ease usingMapColorTypesenumeration. Unwraps the given supplier and callsof(MapColorType).- Parameters:
mapColorTypeSupplier- Supplier to unwrap.- Returns:
- The
MapColorthat represents the provided type
-
of
- Parameters:
mapColorType- TheMapColorTypemapShade- TheMapShade- Returns:
- The
MapColorthat represents the provided type
-
of
static MapColor of(Supplier<MapColorType> mapColorTypeSupplier, Supplier<MapShade> mapShadeSupplier) A method to ease using theMapColorTypesandMapShade. Unwraps the given suppliers and callsof(MapColorType, MapShade).- Parameters:
mapColorTypeSupplier- Supplier to unwrapmapShadeSupplier- Supplier to unwrap- Returns:
- The
MapColorthat represents the provided type.
-
type
MapColorType type()Gets theMapColorTypethat thisMapColorwas built from.- Returns:
- The
MapColorType
-
shade
MapShade shade()- Returns:
- The
MapShade
-
color
Color color()- Returns:
- The
Color
-