getPlantType

getPlantType([number entity]) → integer type
Returns the plant type of the entity entity. Returns -1 if the entity is not a plant. Use the PLANT_* constants to compare the result.