Package org.spongepowered.api.map.color
Interface MapColor
-
- All Superinterfaces:
DataSerializable
public interface MapColor extends DataSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMapColor.BuilderBuilds aMapColor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MapColor.Builderbuilder()Creates aMapColor.Builderfor generating a newMapColor.Colorcolor()static MapColorof(java.util.function.Supplier<MapColorType> mapColorTypeSupplier)A method to ease usingMapColorTypesenumeration.static MapColorof(java.util.function.Supplier<MapColorType> mapColorTypeSupplier, java.util.function.Supplier<MapShade> mapShadeSupplier)A method to ease using theMapColorTypesandMapShade.static MapColorof(MapColorType mapColorType)static MapColorof(MapColorType mapColorType, MapShade mapShade)MapShadeshade()MapColorTypetype()Gets theMapColorTypethat thisMapColorwas built from.-
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
-
-
-
Method Detail
-
builder
static MapColor.Builder builder()
Creates aMapColor.Builderfor generating a newMapColor.- Returns:
- The builder
-
of
static MapColor of(MapColorType mapColorType)
- Parameters:
mapColorType- TheMapColorType- Returns:
- The
MapColorthat represents the provided type
-
of
static MapColor of(java.util.function.Supplier<MapColorType> mapColorTypeSupplier)
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
static MapColor of(MapColorType mapColorType, MapShade mapShade)
- Parameters:
mapColorType- TheMapColorTypemapShade- TheMapShade- Returns:
- The
MapColorthat represents the provided type
-
of
static MapColor of(java.util.function.Supplier<MapColorType> mapColorTypeSupplier, java.util.function.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
-
-