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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildContent
(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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildContent
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
-