Package me.deecaad.core.file.serializers
Class ColorSerializer
java.lang.Object
me.deecaad.core.file.serializers.ColorSerializer
- All Implemented Interfaces:
Serializer<org.bukkit.Color>,SimpleSerializer<org.bukkit.Color>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.Colordeserialize(@NotNull String data, @NotNull String errorLocation) Parses an object from a string.examples()Returns the set of all possible values that can be parsed by this serializer.@NotNull StringThe name of the type of the serializer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLaterMethods inherited from interface me.deecaad.core.file.SimpleSerializer
serialize
-
Constructor Details
-
ColorSerializer
public ColorSerializer()
-
-
Method Details
-
getTypeName
Description copied from interface:SimpleSerializerThe name of the type of the serializer. This is used for error messages.- Specified by:
getTypeNamein interfaceSimpleSerializer<org.bukkit.Color>
-
deserialize
@NotNull public @NotNull org.bukkit.Color deserialize(@NotNull @NotNull String data, @NotNull @NotNull String errorLocation) throws me.deecaad.core.file.SerializerException Description copied from interface:SimpleSerializerParses an object from a string.- Specified by:
deserializein interfaceSimpleSerializer<org.bukkit.Color>- Parameters:
data- The string to parse.errorLocation- The location of the error in the file.- Returns:
- The parsed object.
- Throws:
me.deecaad.core.file.SerializerException
-
examples
Description copied from interface:SimpleSerializerReturns the set of all possible values that can be parsed by this serializer.The set of values will always be finite. Thus, any type that can take on an infinite number of values (like a
double) will return a finite set of example values.- Specified by:
examplesin interfaceSimpleSerializer<org.bukkit.Color>- Returns:
- The set of all possible values that can be parsed by this serializer.
-