Add an enum called MotionFlag that enumerates several of the Entity physical state flags, and Entity#getMotionFlags()
Add EntityLocation extending Location that includes velocity and motion flags. Return this from Entity#getLocation() but also add Entity#getEntityLocation() with the narrowed return type.
Extend PlayerMoveEvent to provide EntityLocations (with backwards compatibility) and fire it when any of the flags change (except BLOCKING)
MotionFlag
that enumerates several of theEntity
physical state flags, andEntity#getMotionFlags()
EntityLocation
extendingLocation
that includes velocity and motion flags. Return this fromEntity#getLocation()
but also addEntity#getEntityLocation()
with the narrowed return type.PlayerMoveEvent
to provideEntityLocation
s (with backwards compatibility) and fire it when any of the flags change (exceptBLOCKING
)