isWithinWorldBorder

Check if the entity is inside the world border.

Mirrors the server-side attack/interact border check.

See also

ServerGamePacketListenerImpl.handleAttack