getMobType

getMobType

> Funzioni

Restituisce il tipo del mostro entity, sotto forma di una delle costanti MOB_* (per esempio MOB_FENNEL_KING, MOB_EVIL_PUMPKIN, MOB_GRAAL...).

Se entity non è precisata, viene restituito il tipo dell'entità corrente. La funzione restituisce -1 se l'entità esiste ma non è un mostro, e null se nessuna entità ha questo identificatore.

Esempio:

Parametri
Ritorno