Package net.tnemc.item
Class JSONHelper
java.lang.Object
net.tnemc.item.JSONHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoolean
(String identifier) getBooleanList
(String identifier) Parses a JSON array into a List. getFloatList
(String identifier) Parses a JSON array into a List. int[]
getIntArray
(String identifier) Parses a JSON array into an int array.getInteger
(String identifier) getIntegerList
(String identifier) Parses a JSON array into a List. org.json.simple.JSONObject
org.json.simple.JSONObject
getStringList
(String identifier) Parses a JSON array into a List. boolean
boolean
void
setObject
(org.json.simple.JSONObject object)
-
Constructor Details
-
JSONHelper
-
-
Method Details
-
has
-
isNull
-
getHelper
-
getJSON
-
getShort
-
getFloat
-
getDouble
-
getInteger
-
getBoolean
-
getLong
-
getString
-
getUUID
-
getStringList
Parses a JSON array into a List. - Parameters:
identifier
- The key of the JSON array.- Returns:
- A List
containing the elements of the JSON array.
-
getIntegerList
Parses a JSON array into a List. - Parameters:
identifier
- The key of the JSON array.- Returns:
- A List
containing the elements of the JSON array.
-
getFloatList
Parses a JSON array into a List. - Parameters:
identifier
- The key of the JSON array.- Returns:
- A List
containing the elements of the JSON array.
-
getBooleanList
Parses a JSON array into a List. - Parameters:
identifier
- The key of the JSON array.- Returns:
- A List
containing the elements of the JSON array.
-
getIntArray
Parses a JSON array into an int array.- Parameters:
identifier
- The key of the JSON array.- Returns:
- An int[] containing the elements of the JSON array.
-
getObject
-
setObject
-