Package net.tnemc.item.persistent.impl
Class PersistentByte
PersistentByte
- Since:
- 0.2.0.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.tnemc.item.persistent.PersistentDataType
identifier, readJSON, toJSON
-
Constructor Details
-
PersistentByte
-
-
Method Details
-
type
Returns the type of the PersistentDataType.- Specified by:
type
in classPersistentDataType<Byte>
- Returns:
- The type of the PersistentDataType as a String.
- Since:
- 0.2.0.0
-
encode
Encodes the value of the PersistentDataType into a string representation.- Specified by:
encode
in classPersistentDataType<Byte>
- Returns:
- The encoded string representation of the value
- Since:
- 0.2.0.0
-
decode
Decodes the given encoded string and sets the decoded value.- Specified by:
decode
in classPersistentDataType<Byte>
- 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
-