Class NBTColorAdapter
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.nbt.NBTColorAdapter
- All Implemented Interfaces:
NBTSerializable<org.bukkit.Color>
An adapter for serializing and deserializing
Color
to and from NBT.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Color
deserialize
(String nbt) Deserialize the object from NBT.serialize
(org.bukkit.Color color) Serialize the object to NBT.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NBTColorAdapter
public NBTColorAdapter()
-
-
Method Details
-
serialize
Description copied from interface:NBTSerializable
Serialize the object to NBT.- Specified by:
serialize
in interfaceNBTSerializable<org.bukkit.Color>
- Parameters:
color
- The object to serialize.- Returns:
- The serialized object.
-
deserialize
Description copied from interface:NBTSerializable
Deserialize the object from NBT.- Specified by:
deserialize
in interfaceNBTSerializable<org.bukkit.Color>
- Parameters:
nbt
- The serialized object.- Returns:
- The deserialized object.
-