getMobType

getMobType

> Functions

Returns the type of the mob entity, as one of the MOB_* constants (for example MOB_FENNEL_KING, MOB_EVIL_PUMPKIN, MOB_GRAAL...).

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 mob, and null if no entity has that id.

Example:

Parameters
Return