getChestType

getChestType

> Funzioni

Restituisce il tipo del forziere entity, sotto forma di una delle costanti CHEST_WOOD (1), CHEST_IRON (2) o CHEST_DIAMOND (3).

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

Esempio:

Parametri
Ritorno