Class NBTColorAdapter

java.lang.Object
nl.sbdeveloper.vehiclesplus.api.nbt.NBTColorAdapter
All Implemented Interfaces:
NBTSerializable<org.bukkit.Color>

public class NBTColorAdapter extends Object implements NBTSerializable<org.bukkit.Color>
An adapter for serializing and deserializing Color to and from NBT.
  • Field Details

  • Constructor Details

    • NBTColorAdapter

      public NBTColorAdapter()
  • Method Details

    • serialize

      public String serialize(org.bukkit.Color color)
      Description copied from interface: NBTSerializable
      Serialize the object to NBT.
      Specified by:
      serialize in interface NBTSerializable<org.bukkit.Color>
      Parameters:
      color - The object to serialize.
      Returns:
      The serialized object.
    • deserialize

      public org.bukkit.Color deserialize(String nbt)
      Description copied from interface: NBTSerializable
      Deserialize the object from NBT.
      Specified by:
      deserialize in interface NBTSerializable<org.bukkit.Color>
      Parameters:
      nbt - The serialized object.
      Returns:
      The deserialized object.