Package net.tnemc.item.persistent.impl
Class PersistentIntArray
java.lang.Object
net.tnemc.item.persistent.PersistentDataType<int[]>
net.tnemc.item.persistent.impl.PersistentIntArray
PersistentIntArray
- 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
-
PersistentIntArray
-
-
Method Details
-
type
Returns the type of the PersistentDataType.- Specified by:
typein classPersistentDataType<int[]>- 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:
encodein classPersistentDataType<int[]>- 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:
decodein classPersistentDataType<int[]>- 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
-