Careful with BoolData: While it works for specifying boolean attributes in JSON syntax, using it in Tags will instead use a ByteData object. Reason for this is that Minecraft does not have Boolean NBT values.
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.
BoolData implements the following interfaces. That means all methods defined in these interfaces are also available in BoolData
No Description Provided
new BoolData(internal as boolean) as BoolData
|internal||boolean||No Description Provided|
Return Type: ICollectionData
// BoolData.asCollection() as ICollectionData true.asCollection();
Checks if this IData contains another IData, mainly used in subclasses of ICollectionData, is the same as an equals check on other IData types
Returns: true if the given IData is contained in this IData
Return Type: boolean
// BoolData.contains(data as IData) as boolean true.contains("Display");
Gets the ID of the internal NBT tag.
Used to determine what NBT type is stored (in a list for example)
Returns: ID of the NBT tag that this data represents.
Return Type: byte
// BoolData.getId() as byte true.getId();