IntData
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Implemented Interfaces
IntData implements the following interfaces. That means all methods defined in these interfaces are also available in IntData
Constructors
No Description Provided
Casters
Methods
asCollection
Return Type: ICollectionData
asList
Gets a List
Return Type: stdlib.List<IData>
asMap
Gets a Map<String, IData> representation of this IData, returns null on anything but MapData.
Return Type: IData[string]
asNumber
Return Type: INumberData
getByte
Gets the value of this IData as a byte
Return Type: byte
getDouble
Gets the value of this IData as a double
Return Type: double
getFloat
Gets the value of this IData as a float
Return Type: float
getId
Gets the ID of the internal NBT tag.
Used to determine what NBT type is stored (in a list for example)
Return Type: byte
getInt
Gets the value of this IData as an int
Return Type: int
getLong
Gets the value of this IData as a long
Return Type: long
getShort
Gets the value of this IData as a short
Return Type: short
getString
Gets the String representation of the internal INBT tag
Return Type: string