Add method getType() method to NbtTag class.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>