Class PersistentLongArray

java.lang.Object
net.tnemc.item.persistent.PersistentDataType<long[]>
net.tnemc.item.persistent.impl.PersistentLongArray

public class PersistentLongArray extends PersistentDataType<long[]>
PersistentLongArray
Since:
0.2.0.0
Author:
creatorfromhell
  • Constructor Details

  • Method Details

    • type

      public String type()
      Returns the type of the PersistentDataType.
      Specified by:
      type in class PersistentDataType<long[]>
      Returns:
      The type of the PersistentDataType as a String.
      Since:
      0.2.0.0
    • encode

      public String encode()
      Encodes the value of the PersistentDataType into a string representation.
      Specified by:
      encode in class PersistentDataType<long[]>
      Returns:
      The encoded string representation of the value
      Since:
      0.2.0.0
    • decode

      public long[] decode(String encoded) throws IllegalArgumentException
      Decodes the given encoded string and sets the decoded value.
      Specified by:
      decode in class PersistentDataType<long[]>
      Parameters:
      encoded - The string to be decoded
      Returns:
      The decoded value of type T
      Throws:
      IllegalArgumentException - if the encoded string is invalid
      Since:
      0.2.0.0