Skip to main content

Module entity_flags

Module entity_flags 

Source
Expand description

What kind of entity something is, as a bit set (EntityInfo::flags).

Constants§

ALIVE
Alive (not removed, not dead).
ANIMAL
An Animal or WaterAnimal.
ARMOR_STAND
An armor stand.
GLIDING
Fall-flying with an elytra.
HORIZONTAL_COLLISION
Bumped into something sideways in its last move.
ITEM
A dropped item (ItemEntity).
LIVING
A LivingEntity (mobs, players, armor stands).
MOB
A Mob (has AI).
MONSTER
An Enemy (hostile mobs).
ON_GROUND
Standing on the ground.
PART
A part of a multi-part entity (ender dragon parts).
PLAYER
A player.
SNEAKING
Sneaking (shift held).
SPECTATOR
A spectating player.
VILLAGER
A villager.