Package org.spongepowered.api.util
Class Color.Builder
- java.lang.Object
-
- org.spongepowered.api.data.persistence.AbstractDataBuilder<Color>
-
- org.spongepowered.api.util.Color.Builder
-
- All Implemented Interfaces:
DataBuilder<Color>
- Enclosing class:
- Color
public static final class Color.Builder extends AbstractDataBuilder<Color>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<Color>
buildContent(DataView container)
Builds the currentlyAbstractDataBuilder.supportedVersion
variant of the intendedDataSerializable
, such that all content upgrades have already been handled byAbstractDataBuilder.build(DataView)
.-
Methods inherited from class org.spongepowered.api.data.persistence.AbstractDataBuilder
build
-
-
-
-
Method Detail
-
buildContent
protected java.util.Optional<Color> buildContent(DataView container) throws InvalidDataException
Description copied from class:AbstractDataBuilder
Builds the currentlyAbstractDataBuilder.supportedVersion
variant of the intendedDataSerializable
, such that all content upgrades have already been handled byAbstractDataBuilder.build(DataView)
. This otherwise follows the same contract asDataBuilder.build(DataView)
.- Specified by:
buildContent
in classAbstractDataBuilder<Color>
- Parameters:
container
- The container with data to build from- Returns:
- The deserialized data serializable, if possible
- Throws:
InvalidDataException
- If there's issues of invalid data formats or invalid data
-
-