Entity.type

Gets the entity's type in a string format.

class Entity
pure nothrow @property @safe
string
type
()

Examples

assert(creeper.type == "creeper");
assert(witherSkull.type == "wither_skull");

Meta