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.Colordeserialize(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:NBTSerializableSerialize the object to NBT.- Specified by:
serializein interfaceNBTSerializable<org.bukkit.Color>- Parameters:
color- The object to serialize.- Returns:
- The serialized object.
-
deserialize
Description copied from interface:NBTSerializableDeserialize the object from NBT.- Specified by:
deserializein interfaceNBTSerializable<org.bukkit.Color>- Parameters:
nbt- The serialized object.- Returns:
- The deserialized object.
-