getBulbType

getBulbType

> Functions

Returns the type of the bulb entity, as one of the BULB_* constants (for example BULB_PUNY, BULB_FIRE, BULB_HEALER...).

If entity is not given, the type of the current entity is returned. The function returns -1 if the entity exists but is not a bulb, and null if no entity has that id.

Example:

Parameters
Return